// ReSharper disable MemberCanBePrivate.Global // ReSharper disable UnusedAutoPropertyAccessor.Global using System; using System.Collections.Generic; namespace RGB.NET.Core { /// /// Represents the information supplied with an -event. /// public class SurfaceLayoutChangedEventArgs : EventArgs { #region Properties & Fields /// /// Gets the that caused the change. Returns null if the change isn't caused by a . /// public IEnumerable Devices { get; } /// /// Gets a value indicating if the event is caused by the addition of a new to the . /// public bool DeviceAdded { get; } /// /// Gets a value indicating if the event is caused by a changed location of one of the devices on the . /// public bool DeviceLocationChanged { get; } #endregion #region Constructors /// /// Initializes a new instance of the class. /// /// The that caused the change. /// A value indicating if the event is caused by the addition of a new to the . /// A value indicating if the event is caused by a changed location of one of the devices on the . public SurfaceLayoutChangedEventArgs(IEnumerable devices, bool deviceAdded, bool deviceLocationChanged) { this.Devices = devices; this.DeviceAdded = deviceAdded; this.DeviceLocationChanged = deviceLocationChanged; } #endregion } }