Example #1
0
        /// <summary>
        /// Sends a connection success message
        /// </summary>
        /// <param name="service">IOrganizationService generated</param>
        /// <param name="parameters">Lsit of parameter</param>
        private void SendSuccessMessage(IOrganizationService service, List <object> parameters)
        {
            if (ConnectionSucceed != null)
            {
                var args = new ConnectionSucceedEventArgs
                {
                    OrganizationService = service,
                    ConnectionDetail    = (ConnectionDetail)parameters[0],
                    Parameter           = parameters[1]
                };

                ConnectionSucceed(this, args);
            }
        }
        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();
        }
        void cManager_ConnectionSucceed(object sender, ConnectionSucceedEventArgs e)
        {
            // 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() == "LoadSolutions")
                {
                    LoadSolutions();
                }
            }
            btnExport.Enabled = true;
			((Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy)this.service).Timeout = TimeSpan.FromMinutes(15);
        }
        /// <summary>
        /// Sends a connection success message
        /// </summary>
        /// <param name="service">IOrganizationService generated</param>
        /// <param name="parameters">List of parameters</param>
        private void SendSuccessMessage(IOrganizationService service, List<object> parameters)
        {
            if (ConnectionSucceed != null)
            {
                var args = new ConnectionSucceedEventArgs
                {
                    OrganizationService = service,
                    ConnectionDetail = (ConnectionDetail)parameters[0],
                    Parameter = parameters[1]
                };

                ConnectionSucceed(this, args);
            }
        }
Example #5
0
        /// <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();
        }
Example #6
0
 private void Instance_ConnectionSucceed(object sender, ConnectionSucceedEventArgs e)
 {
     crmGridView1.OrganizationService = e.OrganizationService;
     button2.Enabled = crmGridView1.OrganizationService != null;
 }