private void BtnOK_Click(object sender, EventArgs e) { foreach (var control in flpWebHooks.Controls) { if (control is WebHookConfig whConf) { whConf.SaveChanges(); } } CurrentState.ApplyTo(Settings); Settings.Save(); saved = true; Close(); }
private void BtnStart_Click(object sender, EventArgs e) { if (!ValidatePaht()) { MessageBox.Show(Language.Data.InitInvalidPathText, Language.Data.InitInvalidPathTitel); return; } Settings.FirstBoot = false; var settings = new Settings(); Settings.ApplyTo(settings); settings.Save(); closeForm = true; Close(); }