mirror of
https://github.com/greenshot/greenshot
synced 2025-07-30 19:50:11 -07:00
Merge remote-tracking branch 'remotes/origin/master' into release/1.2.9
This commit is contained in:
commit
0323705513
276 changed files with 5382 additions and 3666 deletions
|
@ -40,7 +40,7 @@ namespace GreenshotConfluencePlugin {
|
|||
}
|
||||
|
||||
public EnumDisplayer(Type type) {
|
||||
this.Type = type;
|
||||
Type = type;
|
||||
}
|
||||
|
||||
public Type Type {
|
||||
|
@ -49,15 +49,15 @@ namespace GreenshotConfluencePlugin {
|
|||
if (!value.IsEnum) {
|
||||
throw new ArgumentException("parameter is not an Enumerated type", "value");
|
||||
}
|
||||
this.type = value;
|
||||
type = value;
|
||||
}
|
||||
}
|
||||
|
||||
public ReadOnlyCollection<string> DisplayNames {
|
||||
get {
|
||||
this.reverseValues = (IDictionary) Activator.CreateInstance(typeof(Dictionary<,>).GetGenericTypeDefinition().MakeGenericType(typeof(string),type));
|
||||
reverseValues = (IDictionary) Activator.CreateInstance(typeof(Dictionary<,>).GetGenericTypeDefinition().MakeGenericType(typeof(string),type));
|
||||
|
||||
this.displayValues = (IDictionary)Activator.CreateInstance(typeof(Dictionary<,>).GetGenericTypeDefinition().MakeGenericType(type, typeof(string)));
|
||||
displayValues = (IDictionary)Activator.CreateInstance(typeof(Dictionary<,>).GetGenericTypeDefinition().MakeGenericType(type, typeof(string)));
|
||||
|
||||
var fields = type.GetFields(BindingFlags.Public | BindingFlags.Static);
|
||||
foreach (var field in fields) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue