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

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

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