Beispiel #1
0
 private void labelLog_Click(object sender, EventArgs e)
 {
     if (TextBoxUsername.Text.Equals("admin") && TextBoxPassword.Text.Equals("mosu"))
     {
         AdminPage admin = new AdminPage(TextBoxUsername.Text);
         admin.Show();
         SoundPlayer log = new SoundPlayer(@"C:\Users\Mosu\Desktop\proiect_utile\sound.wav");
         log.Play();
     }
     else
     {
         SystemSounds.Exclamation.Play();
         MessageBox.Show("The password or username aren't correct!");
     }
 }
Beispiel #2
0
 public AddOrChangePhoto(AdminPage admin)
 {
     InitializeComponent();
     adminPage = admin;
 }