Ejemplo n.º 1
0
 private void ButtonStop_Click(object sender, RoutedEventArgs e)
 {
     TextConsole.Log("Button:  STOP clicked!");
     ButtonStop.IsEnabled  = false;
     ButtonStart.IsEnabled = true;
     DiscordBot.Stop();
 }
Ejemplo n.º 2
0
        private void ButtonStart_Click(object sender, RoutedEventArgs e)
        {
            TextConsole.Log("Button:  START clicked!");

            if (BotConfig.CheckTokenExist())
            {
                ButtonStart.IsEnabled = false;
                ButtonStop.IsEnabled  = true;
                DiscordBot.Start();
            }
            else
            {
                TextConsole.Log("Please set Token before start Bot!");
            }
        }