Пример #1
0
 private void _btnBasicConfiguration_Click(object sender, EventArgs e)
 {
     if (_serial != null && _serial.IsOpen)
     {
         Gluonpilot.EasyConfig ec = new Gluonpilot.EasyConfig(_serial);
         ec.Show();
         //_serial.ReadAllConfig();
         ReadConfiguration rc = new ReadConfiguration(_serial);
         rc.ShowDialog();
     }
 }
Пример #2
0
        private void _btnReadConfig_Click(object sender, EventArgs e)
        {
            ReadConfiguration rc = new ReadConfiguration(serial);

            rc.ShowDialog();
        }
Пример #3
0
 private void GluonConfig_Shown(object sender, EventArgs e)
 {
     if (_serial != null && _serial.IsOpen)
     {
         ReadConfiguration rc = new ReadConfiguration(_serial);
         if (rc.ShowDialog() == System.Windows.Forms.DialogResult.Cancel)
             PSTaskDialog.cTaskDialog.ShowTaskDialogBox("Error", "Error reading configuration",
                 "Reading the configuration failed. This configuration tool won't work.",
                 "Please make sure there is an active connection before opening this window and retry. It may not work as expected.",
                 "", "", "", "", PSTaskDialog.eTaskDialogButtons.OK, PSTaskDialog.eSysIcons.Error, PSTaskDialog.eSysIcons.Error);
     }
 }
Пример #4
0
 private void _btnReadConfig_Click(object sender, EventArgs e)
 {
     ReadConfiguration rc = new ReadConfiguration(serial);
     rc.ShowDialog();
 }