コード例 #1
0
        public static bool Display(SQLViewModel viewModel)
        {
            SQLEditor editor = new SQLEditor(viewModel);

            editor.Owner = Application.Current.MainWindow;
            return(editor.ShowDialog() ?? false);
        }
コード例 #2
0
        public void EditValue(Property property, object designer)
        {
            SQLViewModel viewModel = new SQLViewModel((ExecuteSQLDesigner)designer);

            if (SQLEditor.Display(viewModel))
            {
                property.Value = viewModel.SQL;
            }
        }