private void clearButton_Click(object sender, EventArgs e)
 {
     amountPaidByTextBox.Clear();
     PatmentidTextBox.Clear();
     datepaidTextBox.Clear();
     AmountReceivedByTextBox.Clear();
 }
 private void eraseButton_Click(object sender, EventArgs e)
 {
     PatmentidTextBox.Clear();
     RegistrationNotextBox.Clear();
     datepaidTextBox.Clear();
     amountPaidByTextBox.Clear();
     amountPaidTextBox.Clear();
     AmountReceivedByTextBox.Clear();
 }