protected void OnModeRemoved(object sender, TargetSelectorEventArgs targetSelectorEventArgs) { if (this.Modes.Contains(targetSelectorEventArgs.RemovedMode)) { this.Modes.Remove(targetSelectorEventArgs.RemovedMode); } }
protected void OnModeAdded(object sender, TargetSelectorEventArgs targetSelectorEventArgs) { if (this.Modes.Contains(targetSelectorEventArgs.AddedMode)) { return; } this.Modes.Add(targetSelectorEventArgs.AddedMode); }
protected void OnModeRemovedInvoker(TargetSelectorEventArgs eventArgs) { this.ModeRemoved?.Invoke(this, eventArgs); }