private void ClosePayment() { if (txtPaid.Text != "") { checks.ClosePayment(Convert.ToInt32(cmbPaymentType.SelectedValue), fpc, rest); this.Close(); } else { MessageBox.Show("Payment Tab could not be blank!!!"); } }