コード例 #1
0
        //private void navWaterSToolStripMenuItem_Click(object sender, EventArgs e)
        //{
        //    Myrobot.SetImageProcessor(7);

        //}


        private void Form1_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (Myrobot != null)
            {
                Myrobot.Shutdown();
                Myrobot = null;
            }
            Application.Exit();
        }
コード例 #2
0
        public Form1()
        {
            InitializeComponent();
            Myrobot = new master.Robot(this);

            if (this.Myrobot.Mode == RobotModeType.Auto)
            {
                this.navigateModeToolStripMenuItem.Checked = true;
            }
            if (this.Myrobot.Mode == RobotModeType.RemoteControl)
            {
                this.remoteControlModeToolStripMenuItem.Checked = true;
            }
            if (this.Myrobot.Mode == RobotModeType.ColorFollow)
            {
                this.colorFollowModeToolStripMenuItem.Checked = true;
            }
            doubleClickTimer.Interval = 100;
            doubleClickTimer.Tick    += new EventHandler(doubleClickTimer_Tick);
        }