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); }
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; }