private void LoadDetails(object sender, SelectionChangedEventArgs e)
        {
            if (!AddTransactionView.IsNavigationBlocked && ListViewTransactions.SelectedItem != null)
            {
                TransactionRepository.Selected = ListViewTransactions.SelectedItem as FinancialTransaction;

                TransactionLogic.PrepareEdit(TransactionRepository.Selected);

                ((Frame)Window.Current.Content).Navigate(typeof(AddTransaction));
                ListViewTransactions.SelectedItem = null;
            }
        }
        private void EditTransaction(object sender, RoutedEventArgs e)
        {
            var element     = (FrameworkElement)sender;
            var transaction = element.DataContext as FinancialTransaction;

            if (transaction == null)
            {
                return;
            }

            TransactionLogic.PrepareEdit(transaction);
            ((Frame)Window.Current.Content).Navigate(typeof(AddTransaction));
        }