private void button1_Click(object sender, EventArgs e) { CalculateForm con = new CalculateForm(); con.Show(); }
private BaseMorbidityControl GetMorbidityControl(MorbidityCtrEnum ctr) { BaseMorbidityControl mcontrol = null; switch (ctr) { case MorbidityCtrEnum.SiteSelection: mcontrol = new SiteSelection(_mforecast, _artSites); break; case MorbidityCtrEnum.OptRecentData: mcontrol = new OptRecentData(_mforecast); break; case MorbidityCtrEnum.FromRecentData: mcontrol = new FromRecentData(_mforecast, _artSites); break; case MorbidityCtrEnum.FromOldData: mcontrol = new FromOldData(_mforecast, _artSites); break; case MorbidityCtrEnum.OptTreatmentTarget: mcontrol = new OptTreatmentTarget(_mforecast); break; case MorbidityCtrEnum.OptArtPatientTarget: mcontrol = new OptArtPatientTarget(_mforecast); break; case MorbidityCtrEnum.OpEverStartedPatientTarget: mcontrol = new OpEverStartedPatientTarget(_mforecast); break; case MorbidityCtrEnum.SiteTargetCalculator: mcontrol = new SiteTargetCalculator(_mforecast, _artSites); break; case MorbidityCtrEnum.PatientNumbersSites: mcontrol = new PatientNumbersSites(_mforecast, _artSites); break; case MorbidityCtrEnum.OptPreTreatmentPatientTargets: mcontrol = new OptPreTreatmentPatientTargets(_mforecast); break; case MorbidityCtrEnum.SiteTargetCalculatorPreART: mcontrol = new SiteTargetCalculatorPreART(_mforecast, _artSites); break; case MorbidityCtrEnum.PreTxNumbersSites: mcontrol = new PreTxNumbersSites(_mforecast, _artSites); break; case MorbidityCtrEnum.TestingInformation: mcontrol = new TestingInformation(_mforecast, _artSites); break; case MorbidityCtrEnum.TestingEfficiency: mcontrol = new TestingEfficiency(_mforecast, _artSites); break; case MorbidityCtrEnum.AdultPatientBehavior: mcontrol = new AdultPatientBehavior(_mforecast, _artSites); break; case MorbidityCtrEnum.PediatricPatientBehavior: mcontrol = new PediatricPatientBehavior(_mforecast, _artSites); break; case MorbidityCtrEnum.EverStartedRecentData: mcontrol = new EverStartedRecentData(_mforecast, _artSites); break; case MorbidityCtrEnum.EverStartedOldData: mcontrol = new EverStartedOldData(_mforecast, _artSites); break; case MorbidityCtrEnum.EverStartedNoData: mcontrol = new EverStartedNoData(_mforecast, _artSites); break; case MorbidityCtrEnum.RapidTestSerial: mcontrol = new RapidTestSerial(_mforecast, _artSites); break; case MorbidityCtrEnum.RapidTestParallel: mcontrol = new RapidTestParallel(_mforecast, _artSites); break; case MorbidityCtrEnum.InvAssumption: mcontrol = new InvAssumption(_mforecast, _invAssumption); break; case MorbidityCtrEnum.CheckupForm: mcontrol = new CheckupForm(_mforecast, _invAssumption, _artSites, _mdiparent); break; case MorbidityCtrEnum.CalculateForm: mcontrol = new CalculateForm(_mforecast); break; case MorbidityCtrEnum.Dashboard: mcontrol = new DashboardForm(_mforecast); break; case MorbidityCtrEnum.RapidTestProtocol: mcontrol = new RapidTestProtocol(_mforecast); break; case MorbidityCtrEnum.TestProtocolsCd4: mcontrol = new TestProtocols(_mforecast, ClassOfMorbidityTestEnum.CD4, _mdiparent); break; case MorbidityCtrEnum.TestProtocolsChem: mcontrol = new TestProtocols(_mforecast, ClassOfMorbidityTestEnum.Chemistry, _mdiparent); break; case MorbidityCtrEnum.TestProtocolsHem: mcontrol = new TestProtocols(_mforecast, ClassOfMorbidityTestEnum.Hematology, _mdiparent); break; case MorbidityCtrEnum.TestProtocolsVir: mcontrol = new TestProtocols(_mforecast, ClassOfMorbidityTestEnum.ViralLoad, _mdiparent); break; case MorbidityCtrEnum.TestProtocolsOther: mcontrol = new TestProtocols(_mforecast, ClassOfMorbidityTestEnum.OtherTest, _mdiparent); break; } if (ctr == MorbidityCtrEnum.SiteSelection) { butGohome.Enabled = false; } else { butGohome.Enabled = true; } return(mcontrol); }