private void Submit_Click(object sender, EventArgs e)
 {
     if (textUsername.Text == "Admin" && textPassword.Text == "admin1")
     {
         ActiveForm.Close();
         if (PowerScreen.ButtonClicked == "blacklist")
         {
             blacklist blackForm = new blacklist();
             blackForm.Show();
         }
         else if (PowerScreen.ButtonClicked == "whitelist")
         {
             whitelist whiteForm = new whitelist();
             whiteForm.Show();
         }
     }
     else
     {
         SoundPlayer audio = new SoundPlayer(Properties.Resources.Noot_Noot);
         audio.Play();
         MessageBox.Show("Incorrect Username or Password");
     }
 }
Пример #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     whitelist.Show();
 }