示例#1
0
 public void Init(CMSViewAdapter viewAdapter)
 {
     this.loggingInfoControl1.Init(viewAdapter);
     this.viewAdapter      = viewAdapter;
     trackingSuiteStandard = viewAdapter.StandardTrackingSuite;
     togglerConfig         = viewAdapter.ControlTogglerConfig;
     InitClassicControls();
     InitAdvancedControls();
     AdjustDisplaysToTracker();
 }
 public void Init(CMSViewAdapter viewAdapter)
 {
     this.viewAdapter    = viewAdapter;
     form                = new SettingsForm();
     otherForm           = new OtherOutputForm();
     otherMessagesThread = new Thread(new ThreadStart(OtherFormsGo));
     otherMessagesThread.Start();
     standardMessagesThread = new Thread(new ThreadStart(StandardFormsGo));
     standardMessagesThread.Start();
     form.Init(viewAdapter);
 }
示例#3
0
        public void Init(CMSViewAdapter viewAdapter)
        {
            this.viewAdapter = viewAdapter;
            this.idConfig    = viewAdapter.IdentificationConfig;
            this.logConfig   = viewAdapter.LogConfig;

            adultConsentControl              = new AdultConsentControl();
            adultConsentControl.IdConfig     = idConfig;
            adultConsentControl.AgreeClick  += new EventHandler(adultConsentControl_AgreeClick);
            adultConsentControl.GoBackClick += new EventHandler(adultConsentControl_GoBackClick);

            idControl              = new IdentificationControl();
            idControl.IdConfig     = idConfig;
            idControl.OkClick     += new EventHandler(idControl_OkClick);
            idControl.CancelClick += new EventHandler(idControl_CancelClick);

            loggingControl = new LoggingControl();
            loggingControl.Init();
            loggingControl.OkClick           += new EventHandler(loggingControl_OkClick);
            loggingControl.PersonalInfoClick += new EventHandler(loggingControl_PersonalInfoClick);
            loggingControl.ViewConsentClick  += new EventHandler(loggingControl_ViewConsentClick);
            loggingControl.ViewAdapter        = viewAdapter;
            loggingControl.LoadControls();

            childConsentControl              = new ChildAssentControl();
            childConsentControl.AgreeClick  += new EventHandler(childConsentControl_AgreeClick);
            childConsentControl.GoBackClick += new EventHandler(childConsentControl_GoBackClick);
            childConsentControl.IdConfig     = idConfig;

            parentConsentControl              = new ParentConsentControl();
            parentConsentControl.AgreeClick  += new EventHandler(parentConsentControl_AgreeClick);
            parentConsentControl.GoBackClick += new EventHandler(parentConsentControl_GoBackClick);
            parentConsentControl.IdConfig     = idConfig;

            researchControl             = new ParticipationRequestControl();
            researchControl.AgreeClick += new EventHandler(researchControl_AgreeClick);

            LoggingInfoState state = CurState;

            if (state.Equals(LoggingInfoState.None))
            {
                SetPage(LoggingInfoCurPage.ResearchIntroPage);
            }
            else if (state.Equals(LoggingInfoState.PersonalInfoEntered))
            {
                SetPage(LoggingInfoCurPage.PersonalIdPage);
            }
            else if (state.Equals(LoggingInfoState.HasConsent))
            {
                SetPage(LoggingInfoCurPage.LogginPage);
            }
        }
        public void Init(CMSViewAdapter viewAdapter)
        {
            animationImage   = Properties.Resources.indicator;
            this.viewAdapter = viewAdapter;
            form             = new SettingsForm();
            otherForm        = new OtherOutputForm();
            //otherForm.Show();
            //otherForm.Visible = false;
            otherMessagesThread = new Thread(new ThreadStart(OtherFormsGo));
            otherMessagesThread.Start();
            standardMessagesThread = new Thread(new ThreadStart(StandardFormsGo));
            standardMessagesThread.Start();

            form.Init(viewAdapter);
        }