public void CloseExternalEditWindow() { if (externalEditView == null) { return; } externalEditView.Close(); externalEditView = null; }
public void OpenExternalEditWindow(SelectedMaterialProvider selectedMaterialProvider, IFontService fontService) { if (externalEditView != null) { CloseExternalEditWindow(); } externalEditView = new ExternalEditView { DataContext = new ExternalViewModel(selectedMaterialProvider, fontService), Owner = mainWindow }; externalEditView.Show(); }