예제 #1
0
 private void controlsMenuItem_Click(object sender, EventArgs e)
 {
     ControlsDialog dlg = new ControlsDialog(false);
     dlg.Owner = MainWindow.Instance;
     dlg.Show();
 }
예제 #2
0
        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();
            }
        }