Example #1
0
        public DataManager(DeviceManager deviceManager, DataControl dataControl)
        {
            _collection = new Collection();

            DispatcherTimer = new DispatcherTimer();
            DispatcherTimer.Tick += DispatcherTimer_Tick;
            DispatcherTimer.Interval = new TimeSpan(0, 0, 0, 1);

            _dataControl = dataControl;
            _dataControl.ResultsListView.ItemsSource = _collection;

            _deviceManager = deviceManager;
            _deviceManager.Devices[0].Port.DataReceived += Port0_DataReceived;
            _deviceManager.Devices[1].Port.DataReceived += Port1_DataReceived;
        }
Example #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.InfoControl = ((DataLoggerPro.Presentation.InfoControl)(target));
     return;
     case 2:
     this.DataControl = ((DataLoggerPro.Presentation.DataControl)(target));
     return;
     case 3:
     this.CommandControl = ((DataLoggerPro.Presentation.CommandControl)(target));
     return;
     case 4:
     this.FileItem = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 5:
     
     #line 32 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.NewTestItem_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 35 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetExportDirectoryItem_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.SetVariableItem = ((System.Windows.Controls.MenuItem)(target));
     
     #line 36 "..\..\..\MainWindow.xaml"
     this.SetVariableItem.Click += new System.Windows.RoutedEventHandler(this.SetVariableItem_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }