public FormConnect(Form1 form, ControlInput.Type type, ControlInput ctrl) { InitializeComponent(); this.parent = form; this.input = type; this.control = ctrl; if (!control.isNXT) { this.trackBar1.Value = 1; this.pictureIconEV3.BackgroundImage = Properties.Resources.ev3_green; this.pictureIconNXT.BackgroundImage = Properties.Resources.nxt_red; if (control.ev3.Connection.IsConnected) this.button2.Text = "Disconnect"; } else { if (control.nxt.Connection.IsConnected) this.button2.Text = "Disconnect"; } }
public FormConnect(Form1 form, ControlInput.Type type) { InitializeComponent(); this.parent = form; this.input = type; }