public SurveyResponseController(
     ISurveyResponseService surveyResponseService,
     ILogger <SurveyResponseController> logger)
 {
     _surveyResponseService = surveyResponseService;
     _logger = logger;
 }
예제 #2
0
 public SurveysController(
     ISurveyManagementService surveyManagementService,
     ISurveyAnswerService surveyAnswerService,
     ISurveyResponseService surveyResponseService)
 {
     this.surveyManagementService = surveyManagementService ?? throw new ArgumentNullException(nameof(surveyManagementService));
     this.surveyAnswerService     = surveyAnswerService ?? throw new ArgumentNullException(nameof(surveyAnswerService));
     this.surveyResponseService   = surveyResponseService ?? throw new ArgumentNullException(nameof(surveyResponseService));
 }
예제 #3
0
 public FMain1(ILogger <FMain1> logger,
               ICourseService courseService,
               IConfiguration configuration,
               IStorageLocatorFactoryService storageFactory,
               ISurveyResponseService surveyResponse,
               FormSurveyAnswer fSurvAnswer,
               FormQuestionAnswer fQuestAnswer,
               IQuestionResponseService questionResponse,
               IServiceProvider services,
               IScreenSelectorService screenSelectorService,
               ICaptureScreenService captureScreenService,
               IImageToTextService imageToText,
               IServiceProvider serviceProvider)
 {
     InitializeComponent();
     _logger                = logger;
     _courseService         = courseService;
     _storageFactory        = storageFactory;
     _surveyResponse        = surveyResponse;
     _fSurvAnswer           = fSurvAnswer;
     _fQuestAnswer          = fQuestAnswer;
     _services              = services;
     _screenSelectorService = screenSelectorService;
     _captureScreenService  = captureScreenService;
     _imageToText           = imageToText;
     _appName               = configuration.GetValue <string>("Title");
     _questionResponse      = questionResponse;
     //implement Audio feature
     //initAudio();
     _receivedSurvey   = HandleReceivedSurvey;
     _receivedQuestion = HandleReceivedQuestion;
     richEditControl1.ContentChanged    += RichEditControl1_ContentChanged;
     _surveyResponse.SurveyReceived     += surveyReceived;
     _questionResponse.QuestionReceived += questionReceived;
     //questionResponse.QuestionReceived += async (s, e) =>
     //{
     //    await questionResponse.SendAsync(new Domain.Btos.Question.QuestionResponseBto
     //    {
     //        StudentId = Program.Username,//"email.com",
     //        SelectedAnswer = 1
     //    });
     //};
     //screenSelectorService.OnSelectedScreenChanged += (s, e) =>
     //{
     //    SelectedLectureWindow = e;
     //    initAudio();
     //};
     this.FormClosed += (s, e) =>
     {
         var fLogin = serviceProvider.GetRequiredService <FormLoginStudent>();
         fLogin.Close();
         Application.Exit();
     };
 }
예제 #4
0
파일: FMain.cs 프로젝트: gmailymail/StuNote
 public FMain(ILogger <FMain> logger,
              ICourseService courseService,
              IConfiguration configuration,
              IStorageLocatorFactoryService storageFactory,
              ISurveyResponseService surveyResponse,
              FormSurveyAnswer fSurvAnswer,
              IQuestionResponseService questionResponse,
              IServiceProvider services,
              IScreenSelectorService screenSelectorService,
              ICaptureScreenService captureScreenService,
              IImageToTextService imageToText)
 {
     InitializeComponent();
     _logger                = logger;
     _courseService         = courseService;
     _storageFactory        = storageFactory;
     _surveyResponse        = surveyResponse;
     _fSurvAnswer           = fSurvAnswer;
     _services              = services;
     _screenSelectorService = screenSelectorService;
     _captureScreenService  = captureScreenService;
     _imageToText           = imageToText;
     _appName               = configuration.GetValue <string>("Title");
     //implement Audio feature
     //initAudio();
     _receivedSurvey = HandleReceivedSurvey;
     richEditControl1.ContentChanged   += RichEditControl1_ContentChanged;
     _surveyResponse.SurveyReceived    += surveyReceived;
     questionResponse.QuestionReceived += async(s, e) =>
     {
         await questionResponse.SendAsync(new Domain.Btos.Question.QuestionResponseBto
         {
             StudentId      = "email.com",
             SelectedAnswer = 1
         });
     };
     screenSelectorService.OnSelectedScreenChanged += (s, e) =>
     {
         SelectedLectureWindow = e;
         initAudio();
     };
 }
예제 #5
0
        public FormSurveyAnswer(ISurveyResponseService survey)
        {
            InitializeComponent();

            _survey = survey;

            _survey.SurveyReceived += (o, e) =>
            {
                if (InvokeRequired)
                {
                    Invoke((Action) delegate()
                    {
                        HandleReceivedSurvey(e);
                    });
                }
                else
                {
                    HandleReceivedSurvey(e);
                }
            };
        }
예제 #6
0
 public SurveyController(SurveyPreviewBuilder surveyPreviewBuilder, ISurveyResponseService surveyResponseService, ISurveyService surveyService)
 {
     _surveyPreviewBuilder  = surveyPreviewBuilder;
     _surveyResponseService = surveyResponseService;
     _surveyService         = surveyService;
 }
예제 #7
0
 public SurveyController(ISurveyReportService reportService, ISurveyResponseService responseService)
 {
     _reportService   = reportService;
     _responseService = responseService;
 }