private void metroButton1_Click(object sender, EventArgs e)
        {
            this.Hide();
            FUserProfile f1 = new FUserProfile(id);

            f1.Show();
        }
Beispiel #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     try
     {
         if (db.DetectAdmin(ID))
         {
             this.Hide();
             new Admin(ID).Show();
         }
         else
         {
             FUserProfile y = new FUserProfile(ID);  // profile info backing
             y.Show();
             this.Hide();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }