コード例 #1
0
ファイル: RemoteDevice.cs プロジェクト: shaburov1/Studing
        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;
 }