private void ProcessSuccess() { resetUiFlag = true; bIsConnectedComplete = true; CrmLoginCtrl.GoBackToLogin(); ThreadHelper.JoinableTaskFactory.Run(async delegate { await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); this.Title = "Notification from Parent"; CrmLoginCtrl.IsEnabled = true; }); ConnectionToCrmCompleted?.Invoke(this, null); resetUiFlag = false; }
private void ProcessSuccess() { resetUiFlag = true; bIsConnectedComplete = true; CrmLoginCtrl.GoBackToLogin(); Dispatcher.Invoke(DispatcherPriority.Normal, new System.Action(() => { this.Title = "Notification from Parent"; CrmLoginCtrl.IsEnabled = true; } )); ConnectionToCrmCompleted?.Invoke(this, null); resetUiFlag = false; }
private void ProcessSuccess() { _resetUiFlag = true; _bIsConnectedComplete = true; _crmSvc = _mgr.CrmSvc; CrmLoginCtrl.GoBackToLogin(); Dispatcher.Invoke(DispatcherPriority.Normal, new Action(() => { Title = "Notification from Parent"; CrmLoginCtrl.IsEnabled = true; } )); // Notify Caller that we are done with success. ConnectionToCrmCompleted?.Invoke(this, null); _resetUiFlag = false; }
/// <summary> /// Will be raised on success /// </summary> private void ProcessSuccess() { this.resetUiFlag = true; this.connectionState = true; CrmServiceClient = crmConnectionManager.CrmSvc; this.CrmLoginControl.GoBackToLogin(); Dispatcher.Invoke(DispatcherPriority.Normal, new Action(() => { this.Title = "Notification from Parent"; this.CrmLoginControl.IsEnabled = true; } )); // Notify Caller that we are done with success. ConnectionToCrmCompleted?.Invoke(this, EventArgs.Empty); this.resetUiFlag = false; }
/// <summary> /// This raises and processes Success /// </summary> private void ProcessSuccess() { this.resetUiFlag = true; this.bIsConnectedComplete = true; this.CrmSvc = this.mgr.CrmSvc; this.CrmLoginCtrl.GoBackToLogin(); ThreadHelper.JoinableTaskFactory.Run(async delegate { await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); base.Title = "Login Complete."; this.CrmLoginCtrl.IsEnabled = true; }); ConnectionToCrmCompleted?.Invoke(this, null); this.resetUiFlag = false; ThreadHelper.JoinableTaskFactory.Run(async delegate { await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); base.DialogResult = true; base.Close(); }); }