using System; namespace MonoGame.Extended.NuclexGui.Controls { /// Event argument class that carries a control instance public class ControlEventArgs : EventArgs { /// Control that will be accessible to the event subscribers private readonly GuiControl _control; /// Initializes a new control event args instance /// Control to provide to the subscribers of the event public ControlEventArgs(GuiControl control) { _control = control; } /// Control that has been provided for the event public GuiControl Control => _control; } }