Example #1
0
 protected void OnModeChanged(object sender, ValueChangedEventArgs valueChangedEventArgs)
 {
     if (this.Modes.Contains(valueChangedEventArgs.NewValue))
     {
         this.activeSelectionMode = valueChangedEventArgs.NewValue;
     }
 }
Example #2
0
 public void RemoveMode(ITargetSelectionMode mode)
 {
     this.OnModeRemovedInvoker(new TargetSelectorEventArgs()
     {
         RemovedMode = mode
     });
 }
Example #3
0
 public void AddMode(ITargetSelectionMode mode)
 {
     this.OnModeAddedInvoker(new TargetSelectorEventArgs()
     {
         AddedMode = mode
     });
 }
Example #4
0
        public void SetMode(ITargetSelectionMode mode)
        {
            if (mode.Equals(this.activeSelectionMode))
            {
                return;
            }

            this.OnModeChangedInvoker(
                new ValueChangedEventArgs {
                NewValue = mode, OldValue = this.activeSelectionMode
            });
        }