Beispiel #1
0
        private SV getStudentInfo()
        {
            SV s = new SV();

            s.MSSV   = tb_StudentID.Text;
            s.NameSV = tb_Name.Text;
            if (rbtn_Male.Checked == true)
            {
                s.Gender = true;
            }
            else
            {
                s.Gender = false;
            }
            s.NS     = dateTimePicker1.Value;
            s.ID_Lop = ((CBBItem)cbb_Class.SelectedItem).Value;
            return(s);
        }
Beispiel #2
0
 public void AddStudent(SV s)
 {
     db.SVs.Add(s);
     db.SaveChanges();
 }