private void EditExpression()
        {
            Module1.Current.DefFilterVM.SelectedDefinitionFilter = this;
            var querybuilderwindow = new QueryBuilderWindow(this, ControlProperties);

            querybuilderwindow.Owner   = FrameworkApplication.Current.MainWindow;
            querybuilderwindow.Closed += (o, e) => { querybuilderwindow = null; };
            querybuilderwindow.ShowDialog();
        }
Ejemplo n.º 2
0
        private void CreateDefinitionFilter()
        {
            //Get the Selected layer
            //Create QueryBuilderControlProperties
            var queryBuilderControlProps = new QueryBuilderControlProperties
            {
                MapMember      = SelectedMapMember,
                EditClauseMode = true,
                AutoValidate   = true
            };
            //Show the Query builder Pro Window
            var querybuilderwindow = new QueryBuilderWindow(new DefinitionFilterItem(SelectedMapMember, null), queryBuilderControlProps);

            querybuilderwindow.Owner   = FrameworkApplication.Current.MainWindow;
            querybuilderwindow.Closed += (o, e) => { querybuilderwindow = null; };
            querybuilderwindow.ShowDialog();
        }