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