예제 #1
0
        public async Task StartBot()
        {
            if (_goBot.IsLoggedIn)
            {
                LiveStatisticsViewModel.StartTimer();

                IsBotRunning = true;
                await _goBot.ExecuteTasks();

                IsBotRunning = false;

                LiveStatisticsViewModel.StopTimer();
            }
            else
            {
                Logger.Write("You must first log in", LogLevel.WARN);
            }
        }
예제 #2
0
 private void StopBot()
 {
     Logger.Write("Stopping bot.. Waiting for all actions to be done", LogLevel.INFO);
     _goBot.IsLoggedIn = false;
     LiveStatisticsViewModel.StopTimer();
 }