Example #1
0
 void toolStripButtonPayClaims_Click(object sender, EventArgs e)
 {
     if (OnPayClaims != null)
     {
         PayClaimsEventArgs eventArgs = new PayClaimsEventArgs();
         foreach (DataGridViewRow row in this.MainForm.dataGridClaims.SelectedRows)
         {
             Claim claim = (Claim)row.DataBoundItem;
             eventArgs.Claims.Add(claim);
         }
         OnPayClaims.Invoke(this, eventArgs);
     }
 }
Example #2
0
        void view_OnPayClaims(object sender, PayClaimsEventArgs e)
        {
            foreach (var claim in e.Claims)
            {
                paymentsEngine.PayClaim(claim);
            }

            view.RefreshTransactions();

            var claims = claimEngine.CalcClaims();

            this.view.RefreshClaims(claims);
        }