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) { Dispatcher.BeginInvoke(() => { txtContent.Text.Remove(0, txtContent.Text.Length); txtContent.Text = "라이센스가 업데이트되어 초기화했습니다. \n"; }); } }