public bool IsValid() { return(CtlPanel.FindVisualChildren <IConfigValue>().All(c => c.IsValid())); }
public void LoadConfig() { Range.ForEach(CtlPanel.FindVisualChildren <IConfigValue>(), c => c.LoadConfig()); Range.ForEach(CtlPanel.FindVisualChildren <IConfigValue>(), c => c.SetChangeEvent(OnChanged)); OnChanged(); }
public void VanishConfig() { Range.ForEach(CtlPanel.FindVisualChildren <IConfigValue>(), c => c.VanishConfig()); Config.FlushToDrive(); }
public void SetConfig(Config config) { Config = config; Range.ForEach(CtlPanel.FindVisualChildren <IConfigValue>(), c => c.SetConfig(config)); }