mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
FEATURE-945: Added environment variables to the external command (also removed unused imports and made some variables readonly)
This commit is contained in:
parent
4f326c9c0e
commit
d25021631e
90 changed files with 390 additions and 373 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