Example #1
0
 private void btnOk_Click(object sender, EventArgs e)
 {
     try
     {
         if (CheckInput())
         {
             CardBll       bll    = new CardBll(AppSettings.CurrentSetting.ParkConnect);
             CommandResult result = bll.NoCardLoss(this.txtCarPlate.Text.Trim(), this.txtOwnerName.Text.Trim(), this.txtMemo.Text.Trim(), this.txtCardCost.DecimalValue, this.comPaymentMode.SelectedPaymentMode);
             if (result.Result == ResultCode.Successful)
             {
                 this.Close();
             }
             else
             {
                 MessageBox.Show(result.Message);
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }