Example #1
0
        public OptRecentData(MorbidityForecast forecast)
        {
            this._forecast = forecast;
            InitializeComponent();

            if (forecast.OptInitialPatientData > 0)
            {
                if (forecast.OptInitialPatientData == 1)
                {
                    lqtCheckBox1.Checked = true;
                    _activeCheckBox      = lqtCheckBox1;
                }
                else
                {
                    lqtCheckBox2.Checked = true;
                    _activeCheckBox      = lqtCheckBox2;
                }
            }
            else
            {
                OnNextButtonStatusChanged(false);
            }

            lqtCheckBox1.LQTCheckBoxClick += new EventHandler <LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
            lqtCheckBox2.LQTCheckBoxClick += new EventHandler <LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
        }
Example #2
0
        public OptTreatmentTarget(MorbidityForecast forecast)
        {
            this._forecast = forecast;
            InitializeComponent();

            if (forecast.OptPatientTreatmentTarget > 0)
            {
                if (forecast.OptPatientTreatmentTarget == 1)
                {
                    chbOntreatment.Checked = true;
                    _activeCheckBox        = chbOntreatment;
                }
                else
                {
                    chbEverstarted.Checked = true;
                    _activeCheckBox        = chbEverstarted;
                }
            }
            else
            {
                OnNextButtonStatusChanged(false);
            }

            chbOntreatment.LQTCheckBoxClick += new EventHandler <LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
            chbEverstarted.LQTCheckBoxClick += new EventHandler <LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
        }
Example #3
0
        public OpEverStartedPatientTarget(MorbidityForecast forecast)
        {
            this._forecast = forecast;
            InitializeComponent();

            if (forecast.OptEverStartedPatientTarget > 0)
            {
                switch (forecast.EverStartedPatientTargetEnum)
                {
                case OptEverStartedPatientTargetEnum.RecentData:
                    _activeCheckBox = chbRecentdata;
                    break;

                case OptEverStartedPatientTargetEnum.OldData:
                    _activeCheckBox = chbOlddata;
                    break;

                case OptEverStartedPatientTargetEnum.NoData:
                    _activeCheckBox = chbNodata;
                    break;
                }
                _activeCheckBox.Checked = true;
            }
            else
            {
                OnNextButtonStatusChanged(false);
            }

            chbNodata.LQTCheckBoxClick     += new EventHandler <LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
            chbOlddata.LQTCheckBoxClick    += new EventHandler <LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
            chbRecentdata.LQTCheckBoxClick += new EventHandler <LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
        }
        public OpEverStartedPatientTarget(MorbidityForecast forecast)
        {
            this._forecast = forecast;
            InitializeComponent();

            if (forecast.OptEverStartedPatientTarget > 0)
            {
                switch (forecast.EverStartedPatientTargetEnum)
                {
                    case OptEverStartedPatientTargetEnum.RecentData:
                        _activeCheckBox = chbRecentdata;
                        break;
                    case OptEverStartedPatientTargetEnum.OldData:
                        _activeCheckBox = chbOlddata;
                        break;
                    case OptEverStartedPatientTargetEnum.NoData:
                        _activeCheckBox = chbNodata;
                        break;
                }
                _activeCheckBox.Checked = true;
            }
            else
            {
                OnNextButtonStatusChanged(false);
            }

            chbNodata.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
            chbOlddata.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
            chbRecentdata.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
        }
Example #5
0
        public OptTreatmentTarget(MorbidityForecast forecast)
        {
            this._forecast = forecast;
            InitializeComponent();

            if (forecast.OptPatientTreatmentTarget > 0)
            {
                if (forecast.OptPatientTreatmentTarget == 1)
                {
                    chbOntreatment.Checked = true;
                    _activeCheckBox = chbOntreatment;
                }
                else
                {
                    chbEverstarted.Checked = true;
                    _activeCheckBox = chbEverstarted;
                }
            }
            else
            {
                OnNextButtonStatusChanged(false);
            }

            chbOntreatment.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
            chbEverstarted.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
        }
Example #6
0
        public OptRecentData(MorbidityForecast forecast)
        {
            this._forecast = forecast;
            InitializeComponent();

            if (forecast.OptInitialPatientData > 0)
            {
                if (forecast.OptInitialPatientData == 1)
                {
                    lqtCheckBox1.Checked = true;
                    _activeCheckBox = lqtCheckBox1;
                }
                else
                {
                    lqtCheckBox2.Checked = true;
                    _activeCheckBox = lqtCheckBox2;
                }
            }
            else
            {
                OnNextButtonStatusChanged(false);
            }

            lqtCheckBox1.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
            lqtCheckBox2.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
        }
        public OptArtPatientTarget(MorbidityForecast forecast)
        {
            this._forecast = forecast;
            InitializeComponent();

            if (forecast.OptArtPatinetTarget > 0)
            {
                switch (forecast.ArtPatinetTargetEnum)
                {
                    case OptArtPatinetTargetEnum.NationalTarget:
                        _activeCheckBox = chbNationaltarget;
                        break;
                    case OptArtPatinetTargetEnum.SiteGrowth:
                        _activeCheckBox = chbSitegrowth;
                        break;
                    case OptArtPatinetTargetEnum.SelectSite:
                        _activeCheckBox = chbSelectsite;
                        break;
                    case OptArtPatinetTargetEnum.AllSite:
                        _activeCheckBox = chbAllsite;
                        break;
                }
                _activeCheckBox.Checked = true;
            }
            else
            {
                OnNextButtonStatusChanged(false);
            }

            chbAllsite.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
            chbNationaltarget.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
            chbSelectsite.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
            chbSitegrowth.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
        }
        public OptArtPatientTarget(MorbidityForecast forecast)
        {
            this._forecast = forecast;
            InitializeComponent();

            if (forecast.OptArtPatinetTarget > 0)
            {
                switch (forecast.ArtPatinetTargetEnum)
                {
                    case OptArtPatinetTargetEnum.NationalTarget:
                        _activeCheckBox = chbNationaltarget;
                        break;
                    case OptArtPatinetTargetEnum.SiteGrowth:
                        _activeCheckBox = chbSitegrowth;
                        break;
                    case OptArtPatinetTargetEnum.SelectSite:
                        _activeCheckBox = chbSelectsite;
                        break;
                    case OptArtPatinetTargetEnum.AllSite:
                        _activeCheckBox = chbAllsite;
                        break;
                }
                _activeCheckBox.Checked = true;
            }
            else
            {
                OnNextButtonStatusChanged(false);
            }

            chbAllsite.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
            chbNationaltarget.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
            chbSelectsite.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
            chbSitegrowth.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
        }
 private void LQTCheckBoxClick(object sender, LQTCheckBoxEvenArgs e)
 {
     if (_activeCheckBox != null)
         _activeCheckBox.Checked = false;
     _forecast.OptArtPatinetTarget = Convert.ToInt32(e.Tag);
     _activeCheckBox = (LQTCheckBox)sender;
     _edited = true;
     OnNextButtonStatusChanged(EnableNextButton());
 }
Example #10
0
 private void LQTCheckBoxClick(object sender, LQTCheckBoxEvenArgs e)
 {
     if (_activeCheckBox != null)
         _activeCheckBox.Checked = false;
     _forecast.OptPatientTreatmentTarget = Convert.ToInt32(e.Tag);
     _activeCheckBox = (LQTCheckBox)sender;
     _edited = true;
     OnNextButtonStatusChanged(EnableNextButton());
 }