private Task ModifyLayerSelection(SelectionCombinationMethod method)
        {
            Task t = QueuedTask.Run(() =>
            {
                System.Diagnostics.Debug.WriteLine("Mod Layer Selection");
                if (MapView.Active == null || SelectedLayer == null || UicSelection == null)
                {
                    return;
                }

                //if (!ValidateExpresion(false))
                //    return;
                string wc = string.Format("FacilityID = \"{0}\"", UicSelection);
                System.Diagnostics.Debug.WriteLine(wc);
                SelectedLayer.Select(new QueryFilter()
                {
                    WhereClause = wc
                }, method);
                MapView.Active.ZoomToSelected();
            });

            this.UpdateModel(UicSelection);
            this.showPaneTest("esri_editing_AttributesDockPane");
            return(t);
        }
        private Task ModifyLayerSelection(SelectionCombinationMethod method)
        {
            return(QueuedTask.Run(() =>
            {
                if (MapView.Active == null || SelectedLayer == null || WhereClause == null)
                {
                    return;
                }

                if (!ValidateExpresion(false))
                {
                    return;
                }

                SelectedLayer.Select(new QueryFilter()
                {
                    WhereClause = WhereClause
                }, method);
            }));
        }