public RobotPosition_Form(LabManager parent) { _parent = parent; Application.EnableVisualStyles(); this.StartPosition = FormStartPosition.CenterScreen; InitializeComponent(); textBoxCommand.Text = ""; button_Send.Enabled = false; }
public RobotAdmin_Form(LabManager parent) { Application.EnableVisualStyles(); this.StartPosition = FormStartPosition.CenterScreen; this.parent = parent; nMachine_ID = myHC.GetMachine_IDFromTCPIPConfigurationForRobot((int)Definition.TCPIPAnalyseClass.ROBOTREMOTECONTROL); InitializeComponent(); // Hook up the Elapsed event for the timer. //RobotRCTimer.Elapsed += new ElapsedEventHandler(TimerEventProcessor); RobotRCTimer.Tick += new EventHandler(TimerEventProcessor); // Set the Interval to 1 seconds (1000 milliseconds). RobotRCTimer.Interval = 1000; RobotRCTimer.Enabled = true; ribbonLabel_Connect.SmallImage = imgList.Images["OrangeBlock"]; ribbonLabel_Connect.Text = "try to connect ..."; button_Motors_OFF.BackColor = Color.LightPink; button_Motors_OFF.Enabled = true; button_Motors_ON.BackColor = Color.LightGreen; parent.SendCommadToTCPIP(10, -1, "", nMachine_ID); nGripperOpen = parent.GetTCPIP_Info(10, 7, nMachine_ID); //CheckTCPIPOnlineState(); /* bTeach bAuto bWarning bSError bSafeguard bEStop bError bPaused bRunning bReady*/ pictureBox_bTeach.Image = imgList.Images["grayDot"]; pictureBox_bAuto.Image = imgList.Images["grayDot"]; pictureBox_bWarning.Image = imgList.Images["grayDot"]; pictureBox_bSError.Image = imgList.Images["grayDot"]; pictureBox_bSafeguard.Image = imgList.Images["grayDot"]; pictureBox_bEStop.Image = imgList.Images["grayDot"]; pictureBox_bError.Image = imgList.Images["grayDot"]; pictureBox_bPaused.Image = imgList.Images["grayDot"]; pictureBox_bRunning.Image = imgList.Images["grayDot"]; pictureBox_bReady.Image = imgList.Images["grayDot"]; }