private void GetReadyToSpam() { BotUpdater.Stop(); for (int i = 3; i >= 1; i--) { this.Text = lang[LanguageManager.Names.TitlePreparing] + i; Thread.Sleep(1000); } BotUpdater.Start(); }
private void buttonListEdit_Click(object sender, EventArgs e) { if (listBoxThreads.SelectedItems.Count == 1 && (IsPaused || !IsRunning)) { BotUpdater.Stop(); ListBoxEditorForm editWindow = new ListBoxEditorForm(lists, IsRunning, lang); editWindow.ShowDialog(); BotUpdater.Start(); } else if (listBoxThreads.SelectedItems.Count != 1) { ShowMessageBox(lang[LanguageManager.Names.MBListSelectError]); } else { ShowMessageBox(lang[LanguageManager.Names.MBBotActiveError]); } }