private void confirm1_Click(object sender, EventArgs e)
 {
     if (std.EditPassword(currentpassword1.Text, newpassword1.Text, confirmpassword1.Text) == 2)
     {
         //FileStream file = File.Create("Uni");
         //BinaryFormatter bf = new BinaryFormatter();
         //bf.Serialize(file, Universal.instance);
         //file.Close();
         StudentPanel studentPanel = new StudentPanel(id);
         studentPanel.Show();
         this.Hide();
     }
     else if (std.EditPassword(currentpassword1.Text, newpassword1.Text, confirmpassword1.Text) == 1)
     {
         errorProvider2.SetError(confirmpassword1, "تکرار رمز عبور صحیح نیست");
     }
     else
     {
         errorProvider1.SetError(currentpassword1, "رمز عبور اشتباه است");
     }
 }