예제 #1
0
 public Robot()
 {
     World.Robot  = this;
     Drive        = new Drive.Drive();
     RobotConsole = new RobotConsole();
     Radar        = new Radar.Radar();
     Movement     = new Movement();
     Color        = Color.Red;
 }
예제 #2
0
파일: Robot.cs 프로젝트: Grodien/HsluRobot
 public Robot()
 {
     World.Robot = this;
       Drive = new Drive.Drive();
       RobotConsole = new RobotConsole();
       Radar = new Radar.Radar();
       Movement = new Movement();
       Color = Color.Red;
 }
예제 #3
0
 private void Dispose(bool disposing)
 {
     if (_isDisposed == false)
     {
         if (disposing)
         {
             Drive.Dispose();
             RobotConsole.Dispose();
         }
     }
 }
예제 #4
0
파일: Form1.cs 프로젝트: Grodien/HsluRobot
        public Form1()
        {
            InitializeComponent();
            _robotConsole = new RobotConsole();
            _robotConsole[Switches.Switch1].SwitchStateChanged += SwitchStateChanged;
            _robotConsole[Switches.Switch2].SwitchStateChanged += SwitchStateChanged;
            _robotConsole[Switches.Switch3].SwitchStateChanged += SwitchStateChanged;
            _robotConsole[Switches.Switch4].SwitchStateChanged += SwitchStateChanged;

            consoleView1.RobotConsole = _robotConsole;
        }