Esempio n. 1
0
        private void conToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var settings = new FormSettings
            {
                Owner = this
            };

            settings.Show();
        }
 public static Show()
 {
     if(_instance == null) // not yet created - create and show
     {
         _instance = new FormSettings();
         _instance.Show();
     }
     else
         _instance.Visible = true; // was created and hidden - un-hide
 }
Esempio n. 3
0
 private void FormMain_KeyDown(object sender, KeyEventArgs e)
 {
     if (keysActivated)
     {
         if (e.KeyCode == Keys.F7)
         {
             this.Hide();
             FormSettings settings = new FormSettings(this);
             settings.Show();
         }
     }
 }
Esempio n. 4
0
        public FormMain(string name, IList <TreeViewNode> nodes, FestManagerSettings settings)
        {
            InitializeComponent();
            InitializeTreeViewComponent(nodes);

            if (!CheckDatabaseConnectivity() && MessageBox.Show(
                    Resources.Error_connection_to_DB_Msg,
                    Resources.Error_connection_to_DB_Title, MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                var formSettings = new FormSettings()
                {
                    Settings = _settings
                };
                formSettings.Show(this);
            }
            else
            {
                CheckPrinterConfiguration();
            }

            Text += " [" + name + "]";

            _settings = settings;
        }