private void BtnAddDebt_OnClick(object sender, RoutedEventArgs e)
        {
            var dateFrom = DpDateFrom.SelectedDate;
            var dateTo   = DpDateTo.SelectedDate;

            var debt = new Debt()
            {
                Amout      = decimal.Parse(TxtAmout.Text),
                DateStart  = (DateTime)dateFrom,
                DebtStatus = (bool)ChbDebtStatus.IsChecked,
                DueDate    = (DateTime)dateTo,
                PaidAmout  = decimal.Parse(TxtPaidAmout.Text)
            };

            var result = database.AddDebtToPerson(SelectedPerson, debt);

            if (result)
            {
                MessageBox.Show("The debt was added!", "Success", MessageBoxButton.OK);
                UpdateControler.Update();
            }
            else
            {
                MessageBox.Show("The debt was not added!", "Success", MessageBoxButton.OK);
            }
        }
 private void BtnIncrease_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         var parsedValue = int.Parse(TxtIncreaseValue.Text);
         var result      = database.IncreaseDebt(ActualDebt, parsedValue);
         if (result)
         {
             FillUpDebt(ActualDebt);
             UpdateControler.Update();
             MessageBox.Show("The debt amount was increased!", "Success", MessageBoxButton.OK);
         }
         else
         {
             MessageBox.Show("The debt amount was not increased!", "Success", MessageBoxButton.OK);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error: " + ex.Message, "Error");
     }
 }