/// <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); } }
/// <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); }
/// <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); }
/// <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); }
/// <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); }