Ejemplo n.º 1
0
 public DotEventArgs(Dot currentDot)
 {
     CurrentDot = currentDot;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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]);
 }
Ejemplo n.º 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;
 }