Пример #1
0
        private void StartTransmitingCommand_Execute()
        {
            SelectedItems.ForEach((el) =>
            {
                el.StartTransmiting();
                el.TransmitToSelectedChannels = TransmitToSelectedChannels;
            });

            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();
        }