Пример #1
0
        public TextbookForm(List <Textbook> TextbookSelList, ITextbookFormReq ITextbookFormReq, string currentCourseID, RefreshUI RefreshUI)
        {
            this.TextbookSelList  = TextbookSelList;
            this.ITextbookFormReq = ITextbookFormReq;
            this.currentCourseID  = currentCourseID;
            this.RefreshUI        = RefreshUI;
            InitializeComponent();

            this.initData();
            this.initView();
        }
Пример #2
0
 /// <summary>
 /// 注意这个初始化的调用先后顺序是不能颠倒的
 /// </summary>
 private void initData()
 {
     if (this.ICourseFormReq == null)
     {
         this.ICourseFormReq = ImplCourseFormReq.NewInstance();
     }
     if (this.ITeacherFormReq == null)
     {
         this.ITeacherFormReq = ImplTeacherFormReq.NewInstance();
     }
     if (this.ITextbookFormReq == null)
     {
         this.ITextbookFormReq = ImplTextbookFormReq.NewInstance();
     }
     //课程列表
     this.LvCourseInitData();
     //选中首个课程
     this.lvCourse.Items[0].Selected = true;
     this.CurrentlCourse             = this.CourseList[0];
 }