using System; using System.Collections.Generic; using System.Text; using static ShengJu_CUT100_DES.GroupHandler; namespace ShengJu_CUT100_DES { public class ModuleStateChangeEventArg : EventArgs { public IEnumerable Targets { get; } public ModuleStateChangeEventArg(CardReaderModule stateChangedModule) { this.Targets = new[] { stateChangedModule }; } public ModuleStateChangeEventArg(IEnumerable stateChangedModules) { this.Targets = stateChangedModules; } } public class CardTapEventArg : EventArgs { public byte[] CardUID { get; } public CardReaderModule CardReaderModule { get; } public CardTapEventArg(byte[] cardUID, CardReaderModule module) { this.CardUID = cardUID; this.CardReaderModule = module; } } }