示例#1
0
 public DotEventArgs(Dot currentDot)
 {
     CurrentDot = currentDot;
 }
示例#2
0
 /// <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;
 }
示例#3
0
 /// <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]);
 }
示例#4
0
 /// <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;
 }