private void ShowSettings(object sender, EventArgs e) { // Show Settings if (!_SettingsHowing) { _UiSettings = new SettingsUI(_KeyUi.Height, _KeyUi.Width); _UiSettings.Closing += (o, ex) => { _SettingsHowing = false; }; _UiSettings.ShowDialog(); } }
private void ShowSettings(object sender, EventArgs e) { // Show Settings if (!_SettingsHowing) { _UiSettings = new SettingsUI(_KeyUi.Height, _KeyUi.Width); _UiSettings.Closing += (o, ex) => { _SettingsHowing = false; }; _UiSettings.ShowDialog(); } }