private void metroShell1_SettingsButtonClick(object sender, EventArgs e) { var fs = new FormSettings(); fs.ShowDialog(); }
private void MainFormMetroApp_Shown(object sender, EventArgs e) { Text = @"Reversals v" + Application.ProductVersion; if (DataManager.Initialize(Settings.Default.sHost, Settings.Default.sDB, Settings.Default.sUser, Settings.Default.sPassword)) { UpdateLists(); } else { MessageBox.Show(@"Check settings for connection to db."); var fs = new FormSettings(); var res = fs.ShowDialog(); if (res == DialogResult.OK) { UpdateLists(); } } Refresh(); }