public bool?Show(AddDebtorViewModel vm) { var window = new AddDebtorWindow(); window.DataContext = vm; return(window.ShowDialog()); }
public bool CreateNewWindow(string title, object e) { AddDebtorWindow addDebtorWindow = new AddDebtorWindow() { DataContext = new AddDebtorViewModel(title, (Debtor)e) }; return(addDebtorWindow.ShowDialog() == true); }