예제 #1
0
 protected void OnModeRemoved(object sender, TargetSelectorEventArgs targetSelectorEventArgs)
 {
     if (this.Modes.Contains(targetSelectorEventArgs.RemovedMode))
     {
         this.Modes.Remove(targetSelectorEventArgs.RemovedMode);
     }
 }
예제 #2
0
        protected void OnModeAdded(object sender, TargetSelectorEventArgs targetSelectorEventArgs)
        {
            if (this.Modes.Contains(targetSelectorEventArgs.AddedMode))
            {
                return;
            }

            this.Modes.Add(targetSelectorEventArgs.AddedMode);
        }
예제 #3
0
 protected void OnModeRemovedInvoker(TargetSelectorEventArgs eventArgs)
 {
     this.ModeRemoved?.Invoke(this, eventArgs);
 }