private void EditOrder(object obj) { EditProductViewModel epvm = new EditProductViewModel(_editProductsDialogService); epvm.Present(epvm); Messenger.Default.Send <ProductModel>(SelectedProduct); }
public void ShowDialog(EditProductViewModel editProdVM) { this.DataContext = editProdVM; this.Show(); }
public void Present(EditProductViewModel prodVM) { _dialogService.ShowDialog(prodVM); }