private void editConnectionBtn_Click(object sender, RoutedEventArgs e)
 {
     PaymentInfo paymentToEdit = GetSelectedItem();
     if (paymentToEdit != null)
     {
         ECMS.AddPayment AddPaymentObj = new ECMS.AddPayment(paymentToEdit);
         AddPaymentObj.Show();
     }
 }
 private void addPaymentBtn_Click(object sender, RoutedEventArgs e)
 {
     ECMS.AddPayment AddPaymentObj = new ECMS.AddPayment(null);
     AddPaymentObj.Show();
 }