Example #1
0
        public Form1()
        {
            rController = new BotController(null);
            database    = new Database();
            _bgWorker   = new BackgroundWorker();
            _bgQuery    = new BackgroundWorker();
            _bgWorker.WorkerReportsProgress = true;
            _bgWorker.DoWork          += _bgWorker_DoWork;
            _bgWorker.ProgressChanged += _bgWorker_ProgressChanged;
            Logger.Instance.Log("Initialized");
            var c = new RobotCommand("N", 0, 0);

            _lastCommand = new List <RobotCommand>();
            _lastCommand.Add(c);
            _lastCommand.Add(c);
            _lastCommand.Add(c);
            _lastCommand.Add(c);
            _lastCommand.Add(c);
            InitializeComponent();
            var s = Logger.Instance.speed;

            numericUpDown1.Value = s;
        }
 public RemoveRobot(BotController rController)
 {
     InitializeComponent();
     this.rController     = rController;
     comboBox1.DataSource = rController.GetAllNames().GetAwaiter().GetResult();
 }
Example #3
0
 public AddRobot(BotController b)
 {
     bController = b;
     InitializeComponent();
 }