private void DataGridRow_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            double a = double.Parse(AmountTextbox.Text);

            if (a != 0)
            {
                BillWisePopUp form = new BillWisePopUp(this, paymentBills);
                form.Show();
            }
        }
 private void AmountTextbox_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Return)
     {
         if (count < 1)
         {
             count++;
             amount = double.Parse(AmountTextbox.Text);
             if (ValidateForm() && amount != 0)
             {
                 recieptBills = paymentBills;
                 BillWisePopUp form = new BillWisePopUp(this, recieptBills);
                 form.Show();
             }
             else
             {
                 MessageBox.Show("Please Fill in the Details Properly!");
             }
             UpdateBalance();
         }
     }
 }