private void Sum_TextChanged(object sender, TextChangedEventArgs e)
 {
     if (TransactionSum.Validate(true))
     {
         decimal remainingSum = owner.RemainingSum.DecimalValue - TransactionSum.DecimalValue;
         RemainingSum.Text = $"{remainingSum:f2}";
     }
     AddTransaction.IsEnabled = IsSaveEnabled();
 }
        private bool IsSaveEnabled()
        {
            bool validReservation = ReservationId.Validate();
            bool validSum         = TransactionSum.Validate(true);
            bool validDate        = TransactionDate.SelectedDate != null;
            bool validType        = Validate(TransactionMethod);
            bool validRemaining   = Validate(RemainingSum);

            return(validReservation && validSum && validDate && validType && validRemaining);
        }