/// <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, Point coords, Element element) { this.Coordinates = coords; this.Element = element; }
/// <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, Element element) { this.Coordinates = new Point(x, y); this.Element = element; }