void UC_CareServerConfig_LedRegistationInfoEvent(bool e) { if (!this.InvokeRequired) { if (e) { _vm.CmdInitialize.Execute(null); bindingSource1.ResetBindings(false); CloseProcessForm(); } } else { LedRegistationInfoHandle led = new LedRegistationInfoHandle(UC_CareServerConfig_LedRegistationInfoEvent); this.Invoke(led, new object[] { e }); } }
private void LedRegistationInfoCompletedEvent(bool e) { if (!this.InvokeRequired) { if (e) { InitializeRegistationData(); } CloseProcessForm(); } else { while (!this.IsHandleCreated) { if (this == null || this.IsDisposed) { return; } } LedRegistationInfoHandle led = new LedRegistationInfoHandle(LedRegistationInfoCompletedEvent); this.Invoke(led, new object[] { e }); } }