private void StopTransmitingCommand_Execute() { SelectedItems.ForEach((el) => el.StopTransmiting()); StartTransmitingCommand.RaiseCanExecuteChanged(); StopTransmitingCommand.RaiseCanExecuteChanged(); ShotCommand.RaiseCanExecuteChanged(); }
private void SelectedItemsChangedCommand_Execute(IList ts) { _selectedItems.Clear(); foreach (var el in ts) { if (el is TracePeriodicViewData viewData) { _selectedItems.Add(viewData); } } StartTransmitingCommand.RaiseCanExecuteChanged(); StopTransmitingCommand.RaiseCanExecuteChanged(); ShotCommand.RaiseCanExecuteChanged(); }