Exemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (co.Details != null)
     {
         if (co.Details.GetType().ToString() == "RiskApps3.Model.PatientRecord.PMH.BreastCancerDetails")
         {
             BreastCancerDetailsView bcdv = new BreastCancerDetailsView((BreastCancerDetails)(co.Details));
             bcdv.ShowDialog();
         }
         if (co.Details.GetType().ToString() == "RiskApps3.Model.PatientRecord.PMH.ColonCancerDetails")
         {
             ColonCancerDetailsView bcdv = new ColonCancerDetailsView((ColonCancerDetails)(co.Details));
             bcdv.ShowDialog();
         }
     }
 }
Exemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (co.Details != null)
     {
         if (co.Details.GetType().ToString() == "RiskApps3.Model.PatientRecord.PMH.BreastCancerDetails")
         {
             BreastCancerDetailsView bcdv = new BreastCancerDetailsView((BreastCancerDetails)(co.Details));
             bcdv.ShowDialog();
         }
         if (co.Details.GetType().ToString() == "RiskApps3.Model.PatientRecord.PMH.ColonCancerDetails")
         {
             ColonCancerDetailsView bcdv = new ColonCancerDetailsView((ColonCancerDetails)(co.Details));
             bcdv.ShowDialog();
         }
     }
 }