Esempio n. 1
0
        private void cmd_start_stop_click(object sender, RoutedEventArgs e)
        {
            if (cmd_start_stop.Content.Equals("Start"))
            {
                if (BasicController.GetInstance(this, tb_Bot_ID.Text, tb_Username.Text).StartBot())
                {
                    StartStopBotUI(true);
                }
                else
                {
                    StartStopBotUI(false);
                }

                Properties.Settings.Default.Save();
            }
            else
            {
                if (BasicController.GetInstance(this, tb_Username.Text, tb_Bot_ID.Text).StopBot())
                {
                    StartStopBotUI(false);
                }
            }
        }