public DotEventArgs(Dot currentDot) { CurrentDot = currentDot; }
/// <summary> /// Removes the event listeners. /// </summary> /// <param name="dot">The dot.</param> public void RemoveEventListeners(Dot dot) { dot.Selected -= Dot_OnSelected; dot.Entered -= Dot_OnEntered; dot.Deselected -= Dot_OnDeselected; }
/// <summary> /// Determines whether the current dot is the next-to-last selected dot. /// </summary> /// <param name="currentDot">The current dot.</param> /// <returns> /// <c>true</c> if the specified current dot is next-to-last selected; otherwise, <c>false</c>. /// </returns> private bool IsDeselecting(Dot currentDot) { return(currentDot == _selectedDots[_lastSelectedDotNumber - 1]); }
/// <summary> /// Adds the event listeners. /// </summary> /// <param name="dot">The dot.</param> public void AddEventListeners(Dot dot) { dot.Selected += Dot_OnSelected; dot.Entered += Dot_OnEntered; dot.Deselected += Dot_OnDeselected; }