Esempio n. 1
0
 private async void Iniciar_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     AdicionarLogo();
     kurosawa        = new Kurosawa(Config, ApiConfig, DbConfig, StatusConfig);
     kurosawa.OnLog += Kurosawa_OnLog;
     await kurosawa.Iniciar();
 }
Esempio n. 2
0
        private async Task LigarBot()
        {
            bool exception;

            await CriarDB();

            Kurosawa kud = new Kurosawa(Config, ApiConfig, DbConfig, Status);

            do
            {
                exception = false;
                try
                {
                    AConsole.WriteAscii("Kurosawa Dia <3", Color.DarkMagenta);
                    await kud.Iniciar();
                }
                catch (Exception)
                {
                    exception = true;
                    await Task.Delay(10000);
                }
            } while (exception);
        }