public void TransmitOtherFeesData()
 {
     if (gridOtherFees.Rows.Count != 1)
     {
         int a = gridOtherFees.RowSel;
         using (AddOtherFeesForm otherForm = new AddOtherFeesForm())
         {
             pubReceiveOtherFees           = otherForm.pubTransmitOtherFees;
             otherForm.txtDescription.text = gridOtherFees[a, 1].ToString();
             otherForm.txtAmount.text      = gridOtherFees[a, 2].ToString();
             otherForm.calDueDate.Value    = DateTime.Parse(gridOtherFees[a, 3].ToString());
             otherForm.calCutOff.Value     = DateTime.Parse(gridOtherFees[a, 4].ToString());
             otherForm.lblTitle.Text       = "Edit Other Fees data";
             otherForm.lblData.Text        = "Remaining: " + balanceHold;
             otherForm.balanceHolder       = balanceHold;
             otherForm.editBalanceHold     = Decimal.Parse(gridOtherFees[a, 2].ToString());
             otherForm.ShowDialog();
             if (otherForm.isConfirmed == true)
             {
                 pubReceiveOtherFees = otherForm.pubTransmitOtherFees;
                 balanceHold         = otherForm.balanceHolder;
                 gridOtherFees[a, 1] = pubReceiveOtherFees.OtherFees_Description;
                 gridOtherFees[a, 2] = pubReceiveOtherFees.OtherFees_Amount;
                 gridOtherFees[a, 3] = pubReceiveOtherFees.OtherFees_DueDate;
                 gridOtherFees[a, 4] = pubReceiveOtherFees.OtherFees_CutOffDate;
             }
             // do what ever with result...
         }
     }
 }
 public void ReceiveOtherFeesData()
 {
     using (AddOtherFeesForm otherForm = new AddOtherFeesForm())
     {
         otherForm.balanceHolder = balanceHold;
         otherForm.lblData.Text  = balanceHold.ToString();
         otherForm.ShowDialog();
         if (otherForm.isConfirmed == true)
         {
             pubReceiveOtherFees = otherForm.pubTransmitOtherFees;
             balanceHold         = otherForm.balanceHolder;
             gridOtherFees.Rows.Count++;
             gridOtherFees[gridOtherFees.Rows.Count - 1, 1] = pubReceiveOtherFees.OtherFees_Description;
             gridOtherFees[gridOtherFees.Rows.Count - 1, 2] = pubReceiveOtherFees.OtherFees_Amount;
             gridOtherFees[gridOtherFees.Rows.Count - 1, 3] = pubReceiveOtherFees.OtherFees_DueDate;
             gridOtherFees[gridOtherFees.Rows.Count - 1, 4] = pubReceiveOtherFees.OtherFees_CutOffDate;
         }
         // do what ever with result...
     }
 }