private void CheckPaymentRecordfromDBButton_Click(object sender, EventArgs e) { if (PaymentMemberNameTextbox.Text == "") { MessageBox.Show("Name missing.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); PaymentMemberNameTextbox.Focus(); PaymentMemberNameTextbox.LineFocusedColor = Color.Red; return; } }
private void UpdatePaymentRecordButton1_Click(object sender, EventArgs e) { if (PaymentMemberNameTextbox.Text == "") { MessageBox.Show("Name missing.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); PaymentMemberNameTextbox.Focus(); PaymentMemberNameTextbox.LineFocusedColor = Color.Red; return; } else if (AmountNowPayingTextbox1.Text == "") { MessageBox.Show("Please Enter the Amount Now Paying to update the Payment Data.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); AmountNowPayingTextbox1.Focus(); AmountNowPayingTextbox1.LineFocusedColor = Color.Red; return; } }