Ejemplo n.º 1
0
        public void SetTxt(object sender,EventArgs e)
        {
            FrmEventArgs fea = e as FrmEventArgs;
             stu = fea.Obj as Student;
          //  stu.Departments = "1";

            txtEdSID.Text = stu.SID;
            txtEdSname.Text = stu.SName;
            dtpEdAdm.Value = Convert.ToDateTime(stu.AdmissionTime);
            dtpEdBir.Value = Convert.ToDateTime(stu.Birthday);
            cmbEdGender.Text = stu.SGender;
            // cmbEdGender.SelectedItem = stu.SGender;
            //cmbEdCollege.SelectedValue = stu.Departments;
            //MessageBox.Show(cmbEdGender.SelectedIndex.ToString());
            //cmbEdClass.SelectedValue = stu.Class;
        }
        public void SetTxt(object sender, EventArgs e)
        {
            FrmEventArgs fea = e as FrmEventArgs;

            teacher = fea.Obj as Teacher;
        }