public static bool Display(SQLViewModel viewModel) { SQLEditor editor = new SQLEditor(viewModel); editor.Owner = Application.Current.MainWindow; return(editor.ShowDialog() ?? false); }
public void EditValue(Property property, object designer) { SQLViewModel viewModel = new SQLViewModel((ExecuteSQLDesigner)designer); if (SQLEditor.Display(viewModel)) { property.Value = viewModel.SQL; } }