Esempio n. 1
0
        void exam_InitBeforeAdd(ref object entity)
        {
            StudentExam tmp = new StudentExam();

            tmp.AllowExamDate = this.txtExamDate.Text.Trim();
            tmp.CoachName     = this.cbCoachName.Text;
            tmp.ExamId        = this.txtExamId.Text.Trim();
            tmp.IdCard        = this.txtIdCard.Text.Trim();
            tmp.Name          = this.txtName.Text.Trim();
            tmp.NewCarType    = this.cbNewCarType.Text;
            tmp.StudentId     = this.lbId.Text;
            entity            = tmp;

            //entity = this.entity;
            //throw new Exception("The method or operation is not implemented.");
        }
Esempio n. 2
0
        void exam_InitBeforeAdd(ref object entity)
        {
            StudentExam tmp = new StudentExam();
            tmp.AllowExamDate = this.txtExamDate.Text.Trim();
            tmp.CoachName = this.cbCoachName.Text;
            tmp.ExamId = this.txtExamId.Text.Trim();
            tmp.IdCard = this.txtIdCard.Text.Trim();
            tmp.Name = this.txtName.Text.Trim();
            tmp.NewCarType = this.cbNewCarType.Text;
            tmp.StudentId = this.lbId.Text;
            entity = tmp;

            //entity = this.entity;
            //throw new Exception("The method or operation is not implemented.");
        }