Example #1
0
        private void ShowNewForm(object sender, EventArgs e)
        {
            UT60EConfigWizard config = new UT60EConfigWizard();
            var result = config.ShowDialog();

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                UT60EDisplayForm    childForm  = new UT60EDisplayForm();
                UT60EMainController controller = new UT60EMainController(childForm, config.port_settings, config.log ? config.log_setting : null);
                childForm.Connect(controller);
                childForm.MdiParent = this;
                childForm.Show();
            }
        }
Example #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (controller.IsLogging())
     {
         controller.StopLogging();
     }
     else
     {
         UT60EConfigWizard config = new UT60EConfigWizard();
         if (config.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
         {
             controller.SetupLogging(config.log_setting);
         }
     }
 }