private void OK_Click(object sender, EventArgs e) { if (!OptionsCTL.Confirm() || !ControlerTab.Confirm()) { DialogResult = DialogResult.Cancel; } }
private void SettingsDialog_Load(object sender, EventArgs e) { ActiveColor = Options.BackColor; Controller.BackColor = InactiveColor; OptionsCTL.Settings = Settings; OptionsCTL.GameDir = GameDir; OptionsCTL.NeedLicenseValidate = NeedLicenseValidate; OptionsCTL.Setup(); ControlerTab.Settings = Settings; ControlerTab.Setup(); ControlerTab.Visible = false; }