private void btnCancel_Click(object sender, EventArgs e)
        {
            // cancelling and going back to payment management
            PaymentManagement payment = new PaymentManagement();

            payment.Show();
            this.Close();
        }
        private void btnPayments_Click(object sender, EventArgs e)
        {
            // opening payment management form
            PaymentManagement paymentManagement = new PaymentManagement();

            paymentManagement.Show();
            this.Close();
        }
 private void btnSubmit_Click(object sender, EventArgs e)
 {
     if (validateFields())
     {
         // getting and storing data in relevant classes
         DateTime dt      = DateTime.Today;
         Payment  payment = new Payment(cmbEmployeeName.Text, txtHoursWorked.Text, txtUsedHealthDays.Text, txtUsedBenefits.Text, txtHourlyRate.Text, dt.ToString(), txtAmount.Text);
         // adding a new payment to list of payments
         Info.payments.Add(payment);
         Notification notification = new Notification("Payment made, Name: " + cmbEmployeeName.Text + ", Amount: " + txtAmount.Text, DateTime.Today.ToString());
         // adding a new notification to list of notifications
         Info.notifications.Add(notification);
         // opening and showing payment management form
         PaymentManagement paymentManagement = new PaymentManagement();
         paymentManagement.Show();
         this.Close();
     }
 }