Esempio n. 1
0
        /// <summary>
        /// Called when [change domain].
        /// </summary>
        /// <param name="status">The status.</param>
        private void OnChangeDomain(SyncStatus status)
        {
            string companyId = this.CompanyInfo.Id;


            EditDefaultAddressForm form = new EditDefaultAddressForm(GetCompanyConfigurator(), companyId);

            if (this.SnapIn.Console.ShowDialog(form) == DialogResult.OK)
            {
                status.ReportProgress(0, 0, SnapInResources.CompanyScopeNode_Action_UpdateAddress_Progress);

                //Thread.Sleep(10000);
                GetCompanyConfigurator().ChangeCompanyAddress(companyId, form.NewSchema, form.NewHost, form.NewPort, true);

                // Refresh Element
                this.DisplayName = form.NewHost;

                this.SubItemDisplayNames[1] = form.NewSchema;
                this.SubItemDisplayNames[2] = form.NewHost;
                this.SubItemDisplayNames[3] = form.NewPort;
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Called when [change domain].
        /// </summary>
        /// <param name="status">The status.</param>
        private void OnChangeDomain(SyncStatus status)
        {
            string companyId = this.CompanyInfo.Id;

            EditDefaultAddressForm form = new EditDefaultAddressForm(GetCompanyConfigurator(), companyId);

            if (this.SnapIn.Console.ShowDialog(form) == DialogResult.OK)
            {
                status.ReportProgress(0, 0, SnapInResources.CompanyScopeNode_Action_UpdateAddress_Progress);

                //Thread.Sleep(10000);
                GetCompanyConfigurator().ChangeCompanyAddress(companyId, form.NewSchema, form.NewHost, form.NewPort, true);

                // Refresh Element
                this.DisplayName = form.NewHost;

                this.SubItemDisplayNames[1] = form.NewSchema;
                this.SubItemDisplayNames[2] = form.NewHost;
                this.SubItemDisplayNames[3] = form.NewPort;
            }
        }