Exemplo n.º 1
0
 private void FillForm(Admin ad, Account acc)
 {
     lblid.Text        = accmng.readkey();
     txtname.Text      = ad.Name;
     txtpass.Text      = acc.Password;
     pictureBox1.Image = images.ByteArraytoImage(ad.Image);
 }
Exemplo n.º 2
0
 private void FillForm(Student stu, Account acc)
 {
     lblid.Text           = accmng.readkey();
     txtname.Text         = stu.Name;
     txtpass.Text         = acc.Password;
     txtemail.Text        = stu.Email;
     dtpage.Value         = stu.Age;
     cmbxgen.SelectedItem = stu.Gender;
     lblsem.Text          = Convert.ToString(stu.Semester);
     lblpro.Text          = Convert.ToString(stu.Program);
     pictureBox1.Image    = images.ByteArraytoImage(stu.Image);
 }
Exemplo n.º 3
0
 public void FillForm(Faculty fac, Account acc)
 {
     lblid.Text           = accmng.readkey();
     txtname.Text         = fac.Name;
     txtpass.Text         = acc.Password;
     txtemail.Text        = fac.Email;
     dtpage.Value         = fac.Date;
     lblpro.Text          = Convert.ToString(fac.Program);
     lblcourse.Text       = Convert.ToString(fac.Course);
     lbldes.Text          = fac.Designation;
     lblsal.Text          = Convert.ToString(fac.Salary);
     cmbxgen.SelectedItem = fac.Gender;
     pictureBox1.Image    = images.ByteArraytoImage(fac.Image);
 }