예제 #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);
     }
 }
예제 #2
0
 //
 private void ConfigurationWindowFormClosed(object sender, FormClosedEventArgs e)
 {
     ConfigWindow.Log -= OnLog;
     ConfigWindow      = null;
 }