Esempio n. 1
0
        public HealthTabVM(ControllerClient controllerClient)
        {
            if (controllerClient == null)
            {
                throw new ArgumentNullException(nameof(controllerClient));
            }

            TraceItems = new SelectableObservableCollection <TraceItem>();

            _controllerClient = controllerClient;

            _traceItemReceiverClient = new TraceItemReceiverClient();
            _traceItemReceiverClient.TraceItemReceived += EnlistTraceItem;
            _traceItemReceiverClient.Start();

            ClearCommand = new DelegateCommand(Clear);

            AutoScroll          = new PropertyVM <bool>(true);
            ShowVerboseMessages = new PropertyVM <bool>(true);
            ShowInformations    = new PropertyVM <bool>(true);
            ShowWarnings        = new PropertyVM <bool>(true);
            ShowErrors          = new PropertyVM <bool>(true);
        }