Resharper cleanup

This commit is contained in:
JustArchi
2017-04-05 16:59:48 +02:00
parent 2199172244
commit 7c8d7b5ada
33 changed files with 332 additions and 223 deletions

View File

@@ -68,7 +68,9 @@ namespace ConfigGenerator {
}
// Gets the current bit value corresponding to all checked items
private int GetCurrentValue() => (from object t in Items select t as FlagCheckedListBoxItem).Where((item, i) => (item != null) && GetItemChecked(i)).Aggregate(0, (current, item) => current | item.Value);
private int GetCurrentValue() {
return (from object t in Items select t as FlagCheckedListBoxItem).Where((item, i) => (item != null) && GetItemChecked(i)).Aggregate(0, (current, item) => current | item.Value);
}
#region Component Designer generated code
@@ -146,7 +148,9 @@ namespace ConfigGenerator {
Caption = c;
}
public override string ToString() => Caption;
public override string ToString() {
return Caption;
}
}
// UITypeEditor for flag enums
@@ -175,6 +179,8 @@ namespace ConfigGenerator {
return FlagEnumCb.EnumValue;
}
public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context) => UITypeEditorEditStyle.DropDown;
public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context) {
return UITypeEditorEditStyle.DropDown;
}
}
}