/// <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!"); } }
/// <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(); }
/// <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(); } } }