Esempio n. 1
0
 public FrmUserExam(string userid,E_Examination exam)
 {
     InitializeComponent();
     UserID = userid;
     Exam = exam;
     this.Text = MainHelper.User.UserName + "  正在进行 " + exam.E_Name + " 考试     时间:" + exam.BySCol1 + " 分钟";
     this.Move += new EventHandler(FrmUserExam_Move);
 }
Esempio n. 2
0
 void gridViewOperation_FocusedRowChanged(object sender, E_Examination obj)
 {
     if (FocusedRowChanged != null)
         FocusedRowChanged(gridView1, gridView1.GetFocusedRow() as E_Examination);
 }
Esempio n. 3
0
 /// <summary>
 /// 新建对象设置Key值
 /// </summary>
 /// <param name="newobj"></param>
 void gridViewOperation_CreatingObjectEvent(E_Examination newobj) {
     DateTime date=DateTime.Now.Date.AddDays(1);
     newobj.StartTime = date.AddHours(8);
     newobj.EndTime = date.AddDays(2).AddHours(12);
     
 }