private void readWriteCurrentCalibrCommand_CommandStateQuery(object sender, C1.Win.C1Command.CommandStateQueryEventArgs e) { e.Enabled = dispatcher.Ecu.IsConnected && currentCalibr != null; }
private void openedDatFilesCommandControl_CommandStateQuery(object sender, C1.Win.C1Command.CommandStateQueryEventArgs e) { e.Enabled = !dispatcher.Ecu.IsStarted; }
private void startCommunicationCommand_CommandStateQuery(object sender, C1.Win.C1Command.CommandStateQueryEventArgs e) { e.Checked = dispatcher.Ecu.IsStarted; e.Enabled = dispatcher.DatFile != null && !dispatcher.Ecu.IsStarted; }
private void stopCommunicationCommand_CommandStateQuery(object sender, C1.Win.C1Command.CommandStateQueryEventArgs e) { e.Enabled = dispatcher.Ecu.IsStarted; }
private void c1Command5_CommandStateQuery(object sender, C1.Win.C1Command.CommandStateQueryEventArgs e) { // we do not allow to create more than 1 child e.Enabled = _form2 == null; }