Esempio n. 1
0
 private void addAnExtraItem(subExtra subExt)
 {
     Model.Course course = courseRef;
     if (!course.containsExtra(subExt.name))
     {
         course.addExtra(subExt);
         GlobalStation.shareInstance.librarySave(delegate() {
             mainGrid.Columns.Add(init_createColumn(subExt));
         }, delegate() {
             course.removeExtra(subExt.UUID);
         });
     }
     else
     {
         HKConfirmForm.showConfirmForm("已有同名的考勤项目存在");
     }
 }