public GenRulesForm() { InitializeComponent(); if (!GenGlobal.GetSetting(GenGlobal.AutoTuneSettings.GEN_RULES)) { GenGlobal.GenerationRules = new GenerationRules(); GenGlobal.SaveSetting(GenGlobal.AutoTuneSettings.GEN_RULES); } GenerationRules = GenGlobal.GenerationRules; GenRulesProp.SelectedObject = GenerationRules; }
private void AutoTuneApp_FormClosing(object sender, FormClosingEventArgs e) { GenGlobal.SaveSetting(GenGlobal.AutoTuneSettings.OLD_GEN_CONFIG); }
private void GenRulesForm_FormClosing(object sender, FormClosingEventArgs e) { GenGlobal.SaveSetting(GenGlobal.AutoTuneSettings.GEN_RULES); }