Esempio n. 1
0
 /// <summary>
 /// Configure board button
 /// </summary>
 private void buttonConfigureBoard_Click(object sender, EventArgs e)
 {
     if (BrainflowBoard != null && ConfigWindow == null)
     {
         ConfigWindow             = new ConfigurationWindow(BrainflowBoard);
         ConfigWindow.Log        += OnLog;
         ConfigWindow.FormClosed += ConfigurationWindowFormClosed;
         ConfigWindow.Show();
     }
     else if (ConfigWindow != null)
     {
         ConfigWindow.WindowState = FormWindowState.Minimized;
         ConfigWindow.Show();
         ConfigWindow.WindowState = FormWindowState.Normal;
     }
     else
     {
         MessageBox.Show(Properties.Resources.StartServerBeforeConfigure, Properties.Resources.AppName);
     }
 }
Esempio n. 2
0
 //
 private void ConfigurationWindowFormClosed(object sender, FormClosedEventArgs e)
 {
     ConfigWindow.Log -= OnLog;
     ConfigWindow      = null;
 }