コード例 #1
0
ファイル: FormConnect.cs プロジェクト: robotics5040/WIFEN
        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";
            }
        }
コード例 #2
0
ファイル: FormConnect.cs プロジェクト: robotics5040/WIFEN
 public FormConnect(Form1 form, ControlInput.Type type)
 {
     InitializeComponent();
     this.parent = form;
     this.input = type;
 }