コード例 #1
0
 private void RpLoaded(object sender, RunWorkerCompletedEventArgs e)
 {
     if (this.InvokeRequired)
     {
         RpLoadedCallback rmc  = new RpLoadedCallback(RpLoaded);
         object[]         args = new object[2];
         args[0] = sender;
         args[1] = e;
         this.Invoke(rmc, args);
     }
     else
     {
         label23.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_MmrPro_1_2_6_Mut_Prob);
         label63.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_MmrPro_1_2_6_Mut_Prob);
     }
 }
コード例 #2
0
ファイル: BrOvCancerRiskView.cs プロジェクト: mahitosh/HRA4
        private void RpLoaded(object sender, RunWorkerCompletedEventArgs e)
        {
            if (Thread.CurrentThread.Name != "MainGUI")
            {
                RpLoadedCallback rmc = new RpLoadedCallback(RpLoaded);
                object[] args = new object[2];
                args[0] = sender;
                args[1] = e;
                this.Invoke(rmc, args);
            }
            else
            {
                BreastClausFiveYear.Text = "";
                BreastClausLifetime.Text = "";
                BreastTcFiveYear.Text = "";
                BreastTcLifetime.Text = "";
                BreastTcV7FiveYear.Text = "";
                BreastTcV7Lifetime.Text = "";
                OvaryBrcaproFiveYear.Text = "";
                OvaryBrcaproLifetime.Text = "";
                gailFiveYearPatientLabel.Text = "";
                GailLifetimePatientLabel.Text = "";
                BreastBrcaproFiveYear.Text = "";
                BreastBrcaproLifetime.Text = "";

                BreastBrcaproFiveYear.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_BrcaPro_5Year_Breast);
                label50.Text = BreastBrcaproFiveYear.Text;

                BreastBrcaproLifetime.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_BrcaPro_Lifetime_Breast);
                label54.Text = BreastBrcaproLifetime.Text;

                label28.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_BrcaPro_1_2_Mut_Prob);
                label35.Text = label28.Text;
                label19.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_BrcaPro_5Year_Ovary);
                label22.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_BrcaPro_Lifetime_Ovary);

                if (proband.gender == "Male")
                {

                }
                else
                {
                    OvaryBrcaproFiveYear.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_BrcaPro_5Year_Ovary);
                    OvaryBrcaproLifetime.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_BrcaPro_Lifetime_Ovary);

                    BreastGailFiveYear.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_Gail_5Year_Breast);
                    BreastGailLifetime.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_Gail_Lifetime_Breast);
                    gailFiveYearPatientLabel.Text = BreastGailFiveYear.Text;
                    GailLifetimePatientLabel.Text = BreastGailLifetime.Text;

                    clausFiveYearPatientLabel.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_Claus_5Year_Breast);
                    clausLifetimePatientLabel.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_Claus_Lifetime_Breast);
                    BreastClausFiveYear.Text = clausFiveYearPatientLabel.Text;
                    BreastClausLifetime.Text = clausLifetimePatientLabel.Text;

                    BreastTcFiveYear.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_TyrerCuzick_5Year_Breast);
                    BreastTcLifetime.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_TyrerCuzick_Lifetime_Breast);

                    BreastTcV7FiveYear.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_TyrerCuzick_v7_5Year_Breast);
                    BreastTcV7Lifetime.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_TyrerCuzick_v7_Lifetime_Breast);

                    OvaryBrcaproFiveYear.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_BrcaPro_5Year_Ovary);
                    OvaryBrcaproLifetime.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_BrcaPro_Lifetime_Ovary);

                    tcFiveYearPatientLabel.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_TyrerCuzick_5Year_Breast);
                    tcLifetimePatientLabel.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_TyrerCuzick_Lifetime_Breast);
                    labelTCProbMutation.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_TyrerCuzick_Brca_1_2);

                    tc7FiveYearPatientLabel.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_TyrerCuzick_v7_5Year_Breast);
                    tc7LifetimePatientLabel.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_TyrerCuzick_v7_Lifetime_Breast);
                    labelTC7ProbMutation.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_TyrerCuzick_v7_Brca_1_2);
                }
            }
        }
コード例 #3
0
 private void RpLoaded(object sender, RunWorkerCompletedEventArgs e)
 {
     if (this.InvokeRequired)
     {
         RpLoadedCallback rmc = new RpLoadedCallback(RpLoaded);
         object[] args = new object[2];
         args[0] = sender;
         args[1] = e;
         this.Invoke(rmc, args);
     }
     else
     {
         label23.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_MmrPro_1_2_6_Mut_Prob);
         label63.Text = NullDoubleToRoundedString(proband.RP.RiskProfile_MmrPro_1_2_6_Mut_Prob);
     }
 }