private void InitialCreateCommmnadForm()
        {
            #region CreateCommand.
            rB_SettingSpeed.Checked = true;

            lineSpeed          = new LabelAndTextBox("直線速度");
            lineSpeed.Location = new Point(500, 60);
            tP_CreateMoveCommand.Controls.Add(lineSpeed);
            lineSpeed.ValueString = "400";

            otherSpeed          = new LabelAndTextBox("非直線速度");
            otherSpeed.Location = new Point(500, 120);
            tP_CreateMoveCommand.Controls.Add(otherSpeed);
            otherSpeed.ValueString = "400";

            moveControlCommandStauts          = new LabelNameAndValue("Command");
            moveControlCommandStauts.Location = new Point(920, 350);
            tP_CreateMoveCommand.Controls.Add(moveControlCommandStauts);

            moveControlReady          = new LabelNameAndValue("Status");
            moveControlReady.Location = new Point(920, 410);
            tP_CreateMoveCommand.Controls.Add(moveControlReady);

            moveControlError          = new LabelNameAndValue("Error");
            moveControlError.Location = new Point(920, 380);
            tP_CreateMoveCommand.Controls.Add(moveControlError);

            motionControlStatus          = new LabelNameAndValue("Motion");
            motionControlStatus.Location = new Point(820, 60);
            tP_CreateMoveCommand.Controls.Add(motionControlStatus);

            locateControlStatus          = new LabelNameAndValue("Locate");
            locateControlStatus.Location = new Point(820, 100);
            tP_CreateMoveCommand.Controls.Add(locateControlStatus);
            #endregion

            #region CommandList.
            agvVelocity          = new LabelNameAndValue("Velocity");
            agvVelocity.Location = new Point(780, 410);
            tP_MoveCommand.Controls.Add(agvVelocity);

            commandStatus          = new LabelNameAndValue("Command");
            commandStatus.Location = new Point(320, 448);
            tP_MoveCommand.Controls.Add(commandStatus);

            moveStatus          = new LabelNameAndValue("Status");
            moveStatus.Location = new Point(550, 448);
            tP_MoveCommand.Controls.Add(moveStatus);

            commandEncoder          = new LabelNameAndValue("Encoder");
            commandEncoder.Location = new Point(550, 410);
            tP_MoveCommand.Controls.Add(commandEncoder);

            real          = new LabelNameAndValue("Real");
            real.Location = new Point(320, 410);
            tP_MoveCommand.Controls.Add(real);

            sensorStatus          = new LabelNameAndValue("Sensor");
            sensorStatus.Location = new Point(90, 448);
            tP_MoveCommand.Controls.Add(sensorStatus);
            #endregion
        }
Exemple #2
0
        private void InitialUserControl()
        {
            loginLevelMessage          = new LabelNameAndValue("LoginLevel", true);
            loginLevelMessage.Location = new Point(10, 40);
            this.Controls.Add(loginLevelMessage);

            login_Account          = new LabelAndTextBox("帳號");
            login_Account.Location = new Point(300, 35);
            this.Controls.Add(login_Account);

            login_Password          = new LabelAndTextBox("密碼", true);
            login_Password.Location = new Point(550, 35);
            this.Controls.Add(login_Password);

            #region 台車資訊.
            soc          = new LabelNameAndValue("SOC");
            soc.Location = new Point(1216, 180);
            this.Controls.Add(soc);

            charge          = new LabelNameAndValue("Charge");
            charge.Location = new Point(1216, 220);
            this.Controls.Add(charge);

            loading          = new LabelNameAndValue("Loading");
            loading.Location = new Point(1216, 260);
            this.Controls.Add(loading);

            cstID          = new LabelNameAndValue("CstID");
            cstID.Location = new Point(1216, 300);
            this.Controls.Add(cstID);
            #endregion

            #region 位置資訊.
            lastAddress          = new LabelNameAndValue("Address");
            lastAddress.Location = new Point(1446, 180);
            this.Controls.Add(lastAddress);

            sectionID          = new LabelNameAndValue("Section");
            sectionID.Location = new Point(1446, 220);
            this.Controls.Add(sectionID);

            sectionDistance          = new LabelNameAndValue("Distance");
            sectionDistance.Location = new Point(1446, 260);
            this.Controls.Add(sectionDistance);

            real          = new LabelNameAndValue("Real");
            real.Location = new Point(1446, 300);
            this.Controls.Add(real);
            #endregion

            #region 移動/取放 資訊.
            moveControlCommand          = new LabelNameAndValue("移動命令");
            moveControlCommand.Location = new Point(1216, 360);
            this.Controls.Add(moveControlCommand);

            moveControlStatus          = new LabelNameAndValue("移動狀態");
            moveControlStatus.Location = new Point(1446, 360);
            this.Controls.Add(moveControlStatus);

            loadUnloadCommand          = new LabelNameAndValue("取放命令");
            loadUnloadCommand.Location = new Point(1216, 400);
            this.Controls.Add(loadUnloadCommand);

            loadUnloadStatus          = new LabelNameAndValue("取放狀態");
            loadUnloadStatus.Location = new Point(1446, 400);
            this.Controls.Add(loadUnloadStatus);
            #endregion

            #region 停止/降速 資訊.
            stopSingal          = new LabelNameAndValue("停車訊號", true);
            stopSingal.Location = new Point(1216, 450);
            this.Controls.Add(stopSingal);

            lowSpeedSingal          = new LabelNameAndValue("降速訊號", true);
            lowSpeedSingal.Location = new Point(1216, 490);
            this.Controls.Add(lowSpeedSingal);
            #endregion
        }