Esempio n. 1
0
        public MainForm()
        {
            // Refactor this later

            InitializeComponent();

            _gameTimer.Elapsed += new ElapsedEventHandler(MoveTimer);
            _gameTimer.Interval = 1;
            _gameTimer.Enabled  = true;

            _formTimer.Tick    += new EventHandler(FormTimer);
            _formTimer.Interval = 1;
            _formTimer.Enabled  = true;

            Driver = new Driver();

            Driver.DriverLog           += Log;
            Driver.InputLog            += Log;
            JoystickHelper.JoystickLog += Log;
            Bot.Instance._log           = Log;

            ActionForm af = new ActionForm();

            af.Show();
        }
Esempio n. 2
0
        public MainForm()
        {
            // Refactor this later

            InitializeComponent();

            _gameTimer.Elapsed += new ElapsedEventHandler(MoveTimer);
            _gameTimer.Interval = 1;
            _gameTimer.Enabled = true;

            _formTimer.Tick += new EventHandler(FormTimer);
            _formTimer.Interval = 1;
            _formTimer.Enabled = true;

            Driver = new Driver();

            Driver.DriverLog += Log;
            Driver.InputLog += Log;
            JoystickHelper.JoystickLog += Log;
            Bot.Instance._log = Log;

            ActionForm af = new ActionForm();

            af.Show();
        }