Example #1
0
 /// <summary>
 /// tbar上查询试题事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void tbarQueryQuestion(object sender, RoutedEventArgs e)
 {
     #region
     this.AddDBCheck(() =>
     {
         this.CtrlToEntityQuestion();
         TimeManager.CaculateQuerySpan(() =>
         {
             QuestionController.InitDB();
         }, () =>
         {
             QuestionController.BindDgQuestion(this.dgQuestion);
         }, this.btnQuerySpan, this.ctlProgress);
     });
     #endregion
 }
        /// <summary>
        ///
        /// </summary>
        private void initController()
        {
            #region
            if (IsConnectingDB)
            {
                OtherController.InitDB();
                OtherController.BindCBQuestionScope(this.cbQuestionScope);
                OtherController.BindCBQuestionType(this.cbQuestiontype);

                this.CtrlToEntityQuestion();
                QuestionController.InitDB();
                QuestionController.BindDgQuestion(this.dgQuestion);

                BackgroundThreadManager.StartAll();
                lazyBindEvent();
            }
            #endregion
        }