Beispiel #1
0
        public bool?Show(EditDebtorViewModel vm)
        {
            var window = new EditDebtorWindow();

            window.DataContext = vm;
            return(window.ShowDialog());
        }
Beispiel #2
0
        public bool CreateNewWindow(string title, object e)
        {
            EditDebtorWindow editDebtorWindow = new EditDebtorWindow()
            {
                DataContext = new EditDebtorViewModel(title, (Debtor)e)
            };

            return(editDebtorWindow.ShowDialog() == true);
        }