Esempio n. 1
0
        public BodyTakeExam2()
        {
            InitializeComponent();

            //this.BackColor = Color.FromArgb(255, 208, 232, 253);

            btnPre.BackColor = Color.FromArgb(255, 80, 151, 228);
            btnPre.ForeColor = Color.White;

            btnNext.BackColor = Color.FromArgb(255, 80, 151, 228);
            btnNext.ForeColor = Color.White;

            btnSubmit.BackColor = Color.FromArgb(255, 80, 151, 228);
            btnSubmit.ForeColor = Color.White;

            if (examService == null)
            {
                examService = ExamService.getInstance();
            }
            if (strWheres == null)
            {
                strWheres = new Dictionary<string, string>();
            }
            if (examResultService == null)
            {
                examResultService = ExamResultService.getInstance();
            }
            if (topicService == null)
            {
                topicService = TopicService.getInstance();
            }
        }
Esempio n. 2
0
        public AddExam2()
        {
            InitializeComponent();

            topicService = TopicService.getInstance();

            examService = ExamService.getInstance();

            if (strWheres == null)
            {
                strWheres = new Dictionary<string, string>();
            }
        }
Esempio n. 3
0
 public static TopicService getInstance()
 {
     if (instance == null)
     {
         instance = new TopicService();
     }
     if (topicDao == null)
     {
         topicDao = new TopicDao();
     }
     if (topicDetailDao == null)
     {
         topicDetailDao = new TopicDetailDao();
     }
     return instance;
 }
Esempio n. 4
0
 public static BodyTopic createForm()
 {
     if (instance == null)
     {
         instance = new BodyTopic();
     }
     if (topicService == null)
     {
         topicService = TopicService.getInstance();
     }
     if (strWheres == null)
     {
         strWheres = new Dictionary<string, string>();
     }
     return instance;
 }
Esempio n. 5
0
        public static chooseTopics createForm(Examination exam_in)
        {
            exam = exam_in;
            //if (instance == null || instance.IsDisposed)
            //{
            instance = new chooseTopics();
            //}
            if (topicService == null)
            {
                topicService = TopicService.getInstance();
            }
            if (examService == null)
            {
                examService = ExamService.getInstance();
            }
            if (strWheres == null)
            {
                strWheres = new Dictionary<string, string>();
            }

            return instance;
        }
Esempio n. 6
0
        public BodySelfTest2()
        {
            InitializeComponent();

            //this.BackColor = Color.FromArgb(255, 208, 232, 253);

            button7.BackColor = Color.FromArgb(255, 80, 151, 228);
            button7.ForeColor = Color.White;

            if (strWheres == null)
            {
                strWheres = new Dictionary<string, string>();
            }
            if (examService == null)
            {
                examService = ExamService.getInstance();
            }

            if (topicService == null)
            {
                topicService = TopicService.getInstance();
            }
        }
Esempio n. 7
0
 public TopicController()
 {
     IKernel kernel = new StandardKernel(new ForumNinjectModule());
     service = kernel.Get<TopicService>();
 }