mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Resharper cleanup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user