Exemplo n.º 1
0
 private void Form2_Load(object sender, EventArgs e)
 {
     DiscordLogging.GetLoggedInfos();
     if (DiscordLogging.isLogged == false)
     {
         this.Close();
     }
     loggedUser.Text = DiscordLogging.loggedUserAndDiscrim;
     this.BackColor  = Color.FromArgb(54, 57, 63);
 }
Exemplo n.º 2
0
        private async void button1_Click(object sender, EventArgs e)
        {
            await Task.Run(() =>
            {
                DiscordLogging discordUser = new DiscordLogging(emailTextBox.Text, passwordTextBox.Text);
            });

            if (DiscordLogging.isLogged == true)
            {
                this.Close();
            }
            else
            {
                MessageBox.Show("Wrong credentials ;u");
            }
        }