Ejemplo n.º 1
0
 private void linkLabel_MakeClaim_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     //IncompleteFeature incomplete = new IncompleteFeature();
     //incomplete.Show();
     if (label_ShowPolicyEndDate.Text == "N/A")
     {
         MakeClaim claim = new MakeClaim(previousPage, inPolicy, this, usingAgent);
         claim.Show();
     }
     else
     {
         PolicyWarning warning = new PolicyWarning();
         warning.Show();
     }
 }
Ejemplo n.º 2
0
 public LossWarning(double profit, PolicyPage inPage, MakeClaim claim)
 {
     InitializeComponent();
     prepreviousPage = inPage;
     previousPage    = claim;
     if (profit > -5.0)
     {
         label_WarningComment1.Text = "A loss of" + (-profit) + " percent has been detected";
         label_MoreLoss1.Visible    = false;
         label_MoreLoss2.Visible    = false;
     }
     else
     {
         label_MoreLoss1.Text          = "A loss of " + (-profit) + " percent has been detected";
         label_WarningComment1.Visible = false;
         label_WarningComment2.Visible = false;
     }
 }