public DetailInvoiceFileDesignerForm(IViewModelBase VM) { InitializeComponent(); SaveChanges.SetParent(ModalDialogParent); DataContext = VM; SetCloseHandler(); }
public DisplayNotes(IViewModelBase VM) { InitializeComponent(); SaveChanges.SetParent(ModalDialogParent); DataContext = VM; SetCloseHandler(); // When the ViewModel asks to be closed, close the window. }