Пример #1
0
        private void StopTransmitingCommand_Execute()
        {
            SelectedItems.ForEach((el) => el.StopTransmiting());

            StartTransmitingCommand.RaiseCanExecuteChanged();
            StopTransmitingCommand.RaiseCanExecuteChanged();
            ShotCommand.RaiseCanExecuteChanged();
        }
Пример #2
0
        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();
        }