private void controlsMenuItem_Click(object sender, EventArgs e) { ControlsDialog dlg = new ControlsDialog(false); dlg.Owner = MainWindow.Instance; dlg.Show(); }
private void MainWindow_Shown(object sender, EventArgs e) { this.WindowState = Settings.Default.MainWindowState; // Make sure the window is focused Focus(); // Show controls if (Settings.Default.ShowControlsOnStartUp) { ControlsDialog ctrldlg = new ControlsDialog(true); ctrldlg.Show(); } }