示例#1
0
 /// <summary>
 /// Permite controlar manualmente al robot.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void manualControlToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (map != null && map.Robot != null)
     {
         if (t == null || !t.IsAlive)
         {
             FormManual m = new FormManual(this.map, this);
             this.Hide();
             m.Show();
         }
         else
         {
             MessageBox.Show("Please stop the execution first!");
         }
     }
     else
     {
         MessageBox.Show("Please, load a valid map first.", "Manual mode", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }
示例#2
0
 /// <summary>
 /// Permite controlar manualmente al robot.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void manualControlToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (map != null && map.Robot != null)
      {
     if (t == null || !t.IsAlive)
     {
        FormManual m = new FormManual(this.map, this);
        this.Hide();
        m.Show();
     }
     else MessageBox.Show("Please stop the execution first!");
      }
      else MessageBox.Show("Please, load a valid map first.", "Manual mode", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
 }