Exemple #1
0
 public StudentForm(string type, DataGridView table, DBProvider.Student student, int id)
 {
     InitializeComponent();
     this.Text = type;
     confirm.Text = type;
     Table = table;
     FullName.Text = student.FullName;
     Sex.Text = student.Sex;
     Address.Text = student.Address;
     Phone.Text = student.Phone;
     Email.Text = student.Email;
     Birth.Text = student.Birth;
     Education.Text = student.Education;
     Medical.Text = student.Medical;
     Nationality.Text = student.Nationality;
     Hobby.Text = student.Hobby;
     Dormitory.Checked = student.Dormitory;
     Group.Text = student.Group;
     Other.Text = student.Other;
     Id = id;
     foreach (DataRow row in DBProvider.GroupCodes().Rows)
     {
         Group.Items.Add(row[0].ToString());
         Group.AutoCompleteCustomSource.Add(row[0].ToString());
     }
 }
Exemple #2
0
 public GroupForm(string type, DataGridView table, DBProvider.Group group, int id)
 {
     InitializeComponent();
     this.Text = type;
     confirm.Text = type;
     Table = table;
     Id = id;
     Code.Text = group.Code;
     Specialty.Text = group.Specialty;
     StudyForm.Text = group.StudyForm;
     Curator.Text = group.Curator;
     foreach (DataRow row in DBProvider.Specialties().Rows)
         Specialty.Items.Add(row[0].ToString());
     foreach (DataRow row in DBProvider.Curators().Rows)
         Curator.Items.Add(row[0].ToString());
 }
 public InstructorForm(string type, DataGridView table, DBProvider.Instructor instructor, int id)
 {
     InitializeComponent();
     this.Text = type;
     confirm.Text = type;
     Table = table;
     Id = id;
     FullName.Text = instructor.FullName;
     Sex.Text = instructor.Sex;
     Address.Text = instructor.Address;
     Phone.Text = instructor.Phone;
     Email.Text = instructor.Email;
     Education.Text = instructor.Education;
     Department.Text = instructor.Department;
     Post.Text = instructor.Post;
     Start.Text = instructor.Start;
     Other.Text = instructor.Other;
     Id = id;
     foreach (DataRow row in DBProvider.Departments().Rows)
         Department.Items.Add(row[0].ToString());
 }