public MainWindowViewModel() { TargetCommunicationLogic = new TargetCommunicationLogic(); ComPorts = TargetCommunicationLogic.GetPorts(); BaudRates = TargetCommunicationLogic.GetBaudRates(); BootCommands = TargetCommunicationLogic.GetCommand(); #region Delegate Commands TestConnectCommand = new DelegateCommand(TestConnectCommandExecute, TestConnectCommandCanExecute); #endregion }
private void TestConnectCommandExecute() { TargetCommunicationLogic.TestConnection(SelectedComPort, SelectedBaudRate); }