/// <summary> /// Occurs when the connection to a server succeed /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cManager_ConnectionSucceed(object sender, ConnectionSucceedEventArgs e) { connectionCount++; ccsb.RebuildConnectionList(); // Store connection Organization Service this.service = e.OrganizationService; // Displays connection status this.ccsb.SetConnectionStatus(true, e.ConnectionDetail); // Clear the current action message this.ccsb.SetMessage(string.Empty); // Do action if needed if (e.Parameter != null) { if (e.Parameter.ToString() == "WhoAmI") { WhoAmI(); } } MessageBox.Show($"Connected to {e.ConnectionDetail.ConnectionName}"); if (connectionCount == e.NumberOfConnectionsRequested) { MessageBox.Show("All connections done!"); } }
private void Instance_ConnectionSucceed(object sender, ConnectionSucceedEventArgs e) { crmGridView1.OrganizationService = e.OrganizationService; button2.Enabled = crmGridView1.OrganizationService != null; button4.Enabled = crmGridView1.OrganizationService != null; button5.Enabled = crmGridView1.OrganizationService != null; }
/// <summary> /// Event Handler /// </summary> /// <param name="sender">sender object</param> /// <param name="e">ConnectionSucceedEventArgs instance.</param> internal void _connectionManager_ConnectionSucceed(object sender, ConnectionSucceedEventArgs e) { // Store connection Organization Service this.Service = e.OrganizationService; // Displays connection status this._crmConnectionStatusBar.SetConnectionStatus(true, e.ConnectionDetail); // Clear the current action message this._crmConnectionStatusBar.SetMessage(string.Empty); }
/// <summary> /// Occurs when the connection to a server succeed /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void cManager_ConnectionSucceed(object sender, ConnectionSucceedEventArgs e) { ccsb.RebuildConnectionList(); // Store connection Organization Service this.service = e.OrganizationService; // Displays connection status this.ccsb.SetConnectionStatus(true, e.ConnectionDetail); // Clear the current action message this.ccsb.SetMessage(string.Empty); setupFormConnected(); listCrmSolutions(); }
private void CManager_ConnectionSucceed(object sender, ConnectionSucceedEventArgs e) { organizationUrl = e.ConnectionDetail.OrganizationServiceUrl; ns = e.ConnectionDetail.OrganizationFriendlyName; // Store connection Organization Service this._service = e.OrganizationService; // Displays connection status this.ccsb.SetConnectionStatus(true, e.ConnectionDetail); // Clear the current action message this.ccsb.SetMessage(string.Empty); ((Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy) this._service).Timeout = TimeSpan.FromMinutes(15); //If success show the groups ShowConnectionDetails(); }
/// <summary> /// Occurs when the connection to a server succeed /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cManager_ConnectionSucceed(object sender, ConnectionSucceedEventArgs e) { ccsb.RebuildConnectionList(); // Store connection Organization Service this.service = e.OrganizationService; // Displays connection status this.ccsb.SetConnectionStatus(true, e.ConnectionDetail); // Clear the current action message this.ccsb.SetMessage(string.Empty); // Do action if needed if (e.Parameter != null) { if (e.Parameter.ToString() == "WhoAmI") { WhoAmI(); } } }
/// <summary> /// Occurs when the connection to a server succeed /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void cManager_ConnectionSucceed(object sender, ConnectionSucceedEventArgs e) { ccsb.RebuildConnectionList(); // Store connection Organization Service this.service = e.OrganizationService; // Displays connection status this.ccsb.SetConnectionStatus(true, e.ConnectionDetail); // Clear the current action message this.ccsb.SetMessage(string.Empty); // Do action if needed if (e.Parameter != null) { if (e.Parameter.ToString() == "WhoAmI") { WhoAmI(); } } }
private void connectionManager_ConnectionSucceed(object sender, ConnectionSucceedEventArgs e) { System.Console.WriteLine("Successfully connected"); }