Ejemplo n.º 1
0
 public override void Reset()
 {
     _info?.SetTrackSource(new List <TrackFile>());
     IsBotRunning = false;
     _listView_progress.ItemsSource = null;
     _progressBar.Value             = 0;
     _textBlock_progress.Text       = "";
     _bot = null;
     _tabs.SelectedIndex = 1;
 }
Ejemplo n.º 2
0
        private void RunBot(GmtBotOptions options)
        {
            _bot = new GmtBot(_files, options);

            _bot.OnProgress += Bot_OnProgress;
            _bot.OnComplete += Bot_OnComplete;

            IsBotRunning = true;

            _listView_progress.ItemsSource = _bot.Logger.LogEntries;
            _tabs.SelectedIndex            = 2;

            _bot.Run(Dispatcher);
        }