protected void OnModeChanged(object sender, ValueChangedEventArgs valueChangedEventArgs) { if (this.Modes.Contains(valueChangedEventArgs.NewValue)) { this.activeSelectionMode = valueChangedEventArgs.NewValue; } }
public void RemoveMode(ITargetSelectionMode mode) { this.OnModeRemovedInvoker(new TargetSelectorEventArgs() { RemovedMode = mode }); }
public void AddMode(ITargetSelectionMode mode) { this.OnModeAddedInvoker(new TargetSelectorEventArgs() { AddedMode = mode }); }
public void SetMode(ITargetSelectionMode mode) { if (mode.Equals(this.activeSelectionMode)) { return; } this.OnModeChangedInvoker( new ValueChangedEventArgs { NewValue = mode, OldValue = this.activeSelectionMode }); }