public OutgoingPaymentsUserControl(PaymentController paymentController,
                                           CustomerController customerController, SupplierController supplierController)
        {
            InitializeComponent();

            this.paymentController  = paymentController;
            this.supplierController = supplierController;
            this.customerController = customerController;

            details = new DetailsUserControl(paymentController);
            details.payerTextBox.Text      = "Lonely Tree";
            details.payerTextBox.IsEnabled = false;
            detailsUserControl.Content     = details;
            collapsePlusImage = new BitmapImage(new Uri("/Images/collapse-plus.png", UriKind.Relative));
            collapseMinImage  = new BitmapImage(new Uri("/Images/collapse-min.png", UriKind.Relative));

            RefreshPaymentDataGrid();
        }
        public IncomingPaymentsUserControl(PaymentController paymentController,
            CustomerController customerController, SupplierController supplierController)
        {
            InitializeComponent();

            this.paymentController = paymentController;
            this.customerController = customerController;
            this.supplierController = supplierController;

            details = new DetailsUserControl(paymentController);
            details.payeeTextBox.Text = "Lonely Tree";
            details.payeeTextBox.IsEnabled = false;
            detailsUserControl.Content = details;
            collapsePlusImage = new BitmapImage(new Uri("/Images/collapse-plus.png", UriKind.Relative));
            collapseMinImage = new BitmapImage(new Uri("/Images/collapse-min.png", UriKind.Relative));

            RefreshPaymentDataGrid();
        }