예제 #1
0
        public ProcessTree()
        {
            InitializeComponent();
            HardwareObserver observer = new HardwareObserver(UpdateValues);

            Globals.provider.Subscribe(observer);
            _procListTreeView = new ObservableCollection <ProcessEntry>();
        }
        public GeneralView(Window mainWindow)
        {
            InitializeComponent();
            HardwareObserver observer = new HardwareObserver(UpdateValues);

            Globals.provider.Subscribe(observer);
            Applications  = new ObservableCollection <ProcessEntry>();
            mainWindowRef = mainWindow;
        }
예제 #3
0
        public SummaryView(Window window)
        {
            InitializeComponent();
            HardwareObserver observer = new HardwareObserver(UpdateValues);

            Globals.provider.Subscribe(observer);
            mainWindowRef = window;
            InitText();
            InitGraphs();
        }
예제 #4
0
        public RealTime()
        {
            InitializeComponent();
            HardwareObserver observer = new HardwareObserver(UpdateValues);

            Globals.provider.Subscribe(observer);
            _procListListView       = new ObservableCollection <ProcessEntry>();
            _procListTreeView       = new ObservableCollection <ProcessEntry>();
            _procListComboBox       = new ObservableCollection <ProcessEntry>();
            selectedProcessComboBox = system;
            this.DataContext        = this;
            cbAll.IsChecked         = true;
            liveGraph.connect();
        }
예제 #5
0
 public void StartLog()
 {
     mypayload.mystart = DateTime.Now;
     observer          = new HardwareObserver(UpdateValues);
     Globals.provider.Subscribe(observer);
 }