protected virtual void licenseExpiredChange(DateTime OldDate, DateTime NewDate) { Action<LicenseExpiredDateTimeArg> handler = licenseExpiredDateTimeChange; if (licenseExpiredDateTimeChange != null) { LicenseExpiredDateTimeArg arg = new LicenseExpiredDateTimeArg(); arg.NewValue = NewDate; arg.oldValue = OldDate; handler(arg); } }
void licenseClient_licenseExpiredDateTimeChange(LicenseExpiredDateTimeArg obj) { if (obj.NewValue != obj.oldValue) { Console.Clear(); Console.WriteLine("라이센스가 업데이트되어 초기화했습니다. "); } }