Ejemplo n.º 1
0
        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";
            }
        }
Ejemplo n.º 2
0
 public FormConnect(Form1 form, ControlInput.Type type)
 {
     InitializeComponent();
     this.parent = form;
     this.input = type;
 }