Example #1
0
        private void btnSendCommand_Click(object sender, EventArgs e)
        {
            // show the command form
            if (frmDeviceCommand == null)
            {
                frmDeviceCommand = new FrmDeviceCommand(kp, environment);
            }

            frmDeviceCommand.ShowDialog();
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 public FrmDeviceData(Settings.KP kp, CommEnvironment environment)
     : this()
 {
     this.kp          = kp ?? throw new ArgumentNullException("kp");
     this.environment = environment ?? throw new ArgumentNullException("environment");
     dataBox          = new RemoteLogBox(lbDeviceData)
     {
         FullLogView = true
     };
     frmDeviceCommand = null;
 }