示例#1
0
 /// <summary>
 /// Instructs the parent layer to select features matching the specified expression.
 /// </summary>
 /// <param name="sender">The object sender where features were selected.</param>
 /// <param name="e">The event args describing which expression was used.</param>
 protected virtual void OnDeselectFeatures(object sender, ExpressionEventArgs e)
 {
     if (DeselectFeatures != null)
     {
         DeselectFeatures(sender, e);
     }
 }
示例#2
0
        /// <summary>
        /// Instructs the parent layer to select features matching the specified expression.
        /// </summary>
        /// <param name="sender">The object sender.</param>
        /// <param name="e">The event args.</param>
        protected virtual void OnSelectFeatures(object sender, ExpressionEventArgs e)
        {
            ExpressionEventArgs myE = e;

            if (EditorSettings.ExcludeExpression != null)
            {
                myE = new ExpressionEventArgs(myE.Expression + " AND NOT (" + EditorSettings.ExcludeExpression + ")");
            }

            SelectFeatures?.Invoke(sender, myE);
        }
示例#3
0
 /// <summary>
 /// Occurs when selecting features and fires the SelectByAttribute event with
 /// the expression used as the filter expression
 /// </summary>
 /// <param name="sender">
 /// </param>
 /// <param name="e">
 /// </param>
 protected virtual void OnDeselectFeatures(object sender, ExpressionEventArgs e)
 {
     UnselectByAttribute(e.Expression);
 }
示例#4
0
 /// <summary>
 /// Instructs the parent layer to select features matching the specified expression.
 /// </summary>
 /// <param name="sender">The object sender where features were selected.</param>
 /// <param name="e">The event args describing which expression was used.</param>
 protected virtual void OnDeselectFeatures(object sender, ExpressionEventArgs e)
 {
     DeselectFeatures?.Invoke(sender, e);
 }
示例#5
0
 /// <summary>
 /// Instructs the parent layer to select features matching the specified expression.
 /// </summary>
 /// <param name="sender">The object sender.</param>
 /// <param name="e">The event args.</param>
 protected virtual void OnDeselectFeatures(object sender, ExpressionEventArgs e)
 {
     ExpressionEventArgs myE = e;
     if (EditorSettings.ExcludeExpression != null)
     {
         myE = new ExpressionEventArgs(myE.Expression + " AND NOT (" + EditorSettings.ExcludeExpression + ")");
     }
     if (DeselectFeatures != null) DeselectFeatures(sender, myE);
 }