/// <summary> /// Returns a new instance of <see cref="CellClickEventArgs"/>. /// </summary> /// <param name="x">X position for the clicked cell.</param> /// <param name="y">Y position for the clicked cell.</param> /// <param name="element">Element contained in the clicked cell.</param> public CellClickEventArgs(SwitchboardControlBase control, int x, int y, ElementBase element) { this.Coordinates = new Coordinates(x, y); this.Element = element; }
/// <summary> /// Returns a new instance of <see cref="CellClickEventArgs"/>. /// </summary> /// <param name="coords">Coordinates for the clicked cell.</param> /// <param name="element">Element contained in the clicked cell.</param> public CellClickEventArgs(SwitchboardControlBase control, Coordinates coords, ElementBase element) { this.Coordinates = coords; this.Element = element; }
/// <summary> /// Returns a new instance of <see cref="CellClickEventArgs"/>. /// </summary> /// <param name="coords">Coordinates for the clicked cell.</param> public CellClickEventArgs(SwitchboardControlBase control, Coordinates coords) { this.Coordinates = coords; this.Element = null; }