/// <summary> /// This raises and processes Success /// </summary> private void ProcessSuccess() { resetUiFlag = true; bIsConnectedComplete = true; CrmSvc = mgr.CrmSvc; CrmLoginCtrl.GoBackToLogin(); Dispatcher.Invoke(DispatcherPriority.Normal, new System.Action(() => { this.Title = "Notification from Parent"; CrmLoginCtrl.IsEnabled = true; } )); //here we should be connected to crm and we need connection info to generate model if requested! if (CrmConnectionMgr != null && CrmConnectionMgr.CrmSvc != null && CrmConnectionMgr.CrmSvc.IsReady) { connectionStringService.ApplyDBInfoInfoFromClientService(CrmConnectionMgr.CrmSvc, cxInfo.DatabaseInfo); } this.DialogResult = true; // Notify Caller that we are done with success. ContextClassSelectionCompleted?.Invoke(this, null); resetUiFlag = false; }
private void CRMLoginForm_SetupCompleted(object sender, EventArgs e) { ContextClassSelectionCompleted?.Invoke(this, e); }