Example #1
0
        public bool?Show(AddDebtorViewModel vm)
        {
            var window = new AddDebtorWindow();

            window.DataContext = vm;
            return(window.ShowDialog());
        }
Example #2
0
        public bool CreateNewWindow(string title, object e)
        {
            AddDebtorWindow addDebtorWindow = new AddDebtorWindow()
            {
                DataContext = new AddDebtorViewModel(title, (Debtor)e)
            };

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