Beispiel #1
0
        private void manualStartAutomationButton_Click(object sender, EventArgs e)
        {
            if (twitchBot != null && twitchBot.twitchChat != null && twitchBot.twitchChat.Connected && autoList.SelectedItem != null)
            {
                Automation auto = autoManager.GetAutomation(autoList.SelectedItem.ToString());
                if (auto != null)
                {
                    if (auto.running && autoManager.timers[auto.threadIndex].Enabled)
                    {
                        return;
                    }

                    autoManager.Automation(AutomationManager.AutomationController.Start, autoList.SelectedItem.ToString());

                    autoList_SelectedIndexChanged(null, EventArgs.Empty);
                }
            }
        }