Пример #1
0
        public RemoteDevice(ref SerialPort sp, ref StatusBar sb, ref Dashboard db, ref MySettings ms)
        {
            statusBar  = sb;
            dashboard  = db;
            mySettings = ms;

            link = new MyLinkHandler(ref sp, ref sb);
        }
Пример #2
0
 public MainForm()
 {
     InitializeComponent();
     mySettings           = new MySettings(ref connectButton, ref cbPorts, ref inputInjectorPerformance);
     statusBar            = new StatusBar(ref statusImageLabel, ref statusTextLabel);
     dashboard            = new Dashboard(ref chartDashboard, ref digitDashboard, ref rpmDashboard);
     remoteScaner         = new RemoteDevice(ref adapterPort, ref statusBar, ref dashboard, ref mySettings);
     tabControl.DrawItem += new DrawItemEventHandler(tabControl_DrawItem);
     MainForm.CheckForIllegalCrossThreadCalls = true;
 }