private BetterDict <string, YamlObject> GetObjectChangeDict() { return(new BetterDict <string, YamlObject> { { online.GetFieldName(), online.GetValue() }, { local.GetFieldName(), local.GetValue() } }); }
private BetterDict <string, YamlObject> GetObjectChangeDict() { return(new BetterDict <string, YamlObject> { { sourceFrom.GetFieldName(), sourceFrom.GetValue() }, { sourceTo.GetFieldName(), sourceTo.GetValue() } }); }
private BetterDict <string, string> GetValueChangeDict() { return(new BetterDict <string, string> { { displayAdditions.GetFieldName(), displayAdditions.ToString() }, { displayDifferences.GetFieldName(), displayDifferences.ToString() }, { displayRemovals.GetFieldName(), displayRemovals.ToString() }, { displayCommons.GetFieldName(), displayCommons.ToString() } }); }
private BetterDict <string, string> GetValueChangeDict() { return(new BetterDict <string, string> { { pauseDownloadOnError.GetFieldName(), pauseDownloadOnError.ToString() }, { doDownload.GetFieldName(), doDownload.ToString() }, { appendPlatform.GetFieldName(), appendPlatform.ToString() }, { appendVersion.GetFieldName(), appendVersion.ToString() }, { appendDate.GetFieldName(), appendDate.ToString() } }); }
private static void OnConsoleColorClicked <EnumType>(MenuUtils menuUtils, IMenuPropertyAccessor <EnumType> colorAccessor, string header, int spacing) where EnumType : struct, Enum { colorAccessor.SetValue( Enum.Parse <EnumType>( menuUtils.OpenEnumConfigEditor( header + "." + colorAccessor.GetFieldName(), colorAccessor.GetValue().ToString(), Enum.GetNames(typeof(EnumType)), spacing ) ) ); }
void IMenuPropertyOnClickBehavior <string> .OnClick(MenuUtils menuUtils, IMenuPropertyAccessor <string> property, string header, int spacing) { property.SetValue(MenuUtils.OpenSimpleConfigEditor(header, property.GetFieldName(), property.GetValue())); }
void IMenuPropertyOnClickBehavior <T> .OnClick(MenuUtils menuUtils, IMenuPropertyAccessor <T> property, string header, int spacing) { property.SetValue(Enum.Parse <T>(menuUtils.OpenEnumConfigEditor(header + "." + property.GetFieldName(), property.GetValue().ToString(), Enum.GetNames(typeof(T)), spacing))); }
void IMenuPropertyOnClickBehavior <T> .OnClick(MenuUtils menuUtils, IMenuPropertyAccessor <T> property, string header, int spacing) { menuUtils.OpenObjectMenu(header, property.GetFieldName(), property.GetValue(), 0, spacing); }