コード例 #1
0
        protected void OnCompanieUpdated()
        {
            // Build wizardPage3Suceess Page
            //for (int i = 0; i < 10; i++)
            {
                if (this.FailedCompanies.Count != 0)
                {
                    pictureBoxUpdateResult.Image = SnapInResources.CompanyUpdate_Result_Warning;
                    labelFinalResult.Text        = SnapInResources.UpdateCompanyListForm_FinalWarning_Text;
                    //listBoxFailedCompany.Visible = true;

                    for (int index = 0; index < this.FailedCompanies.Count; index++)
                    {
                        CompanyScopeNode company = this.FailedCompanies[index];

                        string companyId   = (string)company.Tag;
                        string companyName = company.DisplayName;

                        CompanyUpdateLogControl control = new CompanyUpdateLogControl();
                        control.Init(companyName, companyId, this.FailedCompaniesLogs[index]);

                        tableLayoutPanelUpdateLog.Controls.Add(control);
                        //listBoxFailedCompany.Items.Add(string.Format("{0} ({1})", companyName, companyId));
                    }
                }
            }

            this.wizard.ActivatePage(wizardPage3Suceess);

            this.wizard.BackEnabled   = false;
            this.wizard.NextEnabled   = true;
            this.wizard.CancelEnabled = false;
        }
コード例 #2
0
ファイル: UpdateCompanyListForm.cs プロジェクト: 0anion0/IBN
        /// <summary>
        /// Initializes a new instance of the <see cref="UpdateCompanyListForm"/> class.
        /// </summary>
        /// <param name="serverConfigurator">The server configurator.</param>
        public UpdateCompanyListForm(IConfigurator configurator, CompanyScopeNode[] companies)
        {
            InitializeComponent();

            #if RADIUS
            this.Icon = SnapInResources.portal_RS;
            #endif

            this.Configurator = configurator;
            this.Companies = companies;
            this.CancelUpdate = false;

            this.FailedCompanies = new List<CompanyScopeNode>();
            this.FailedCompaniesLogs = new List<string>();

            InitializePage1();
        }
コード例 #3
0
ファイル: CompaniesScopeNode.cs プロジェクト: alex765022/IBN
        private void LoadCompanies()
        {
            foreach (ICompanyInfo companyInfo in GetCompanyElements())
            {
                CompanyScopeNode companyScopeNode = new CompanyScopeNode(companyInfo);
                this.Children.Add(companyScopeNode);

                // Domain Alias
#if DEBUG
                ScopeNode domainAliasesScopeNode = new ScopeNode();
                companyScopeNode.Children.Add(domainAliasesScopeNode);

                DataElement domainAliases = new DataElement(DataElementType.DomainAliases,
                                                            string.Empty,
                                                            SnapInResources.ScopeNodeDispayName_DomainAliases);

                domainAliasesScopeNode.DisplayName        = domainAliases.DisplayName;
                domainAliasesScopeNode.Tag                = domainAliases;
                domainAliasesScopeNode.ImageIndex         = 5;
                domainAliasesScopeNode.SelectedImageIndex = 5;
#endif
            }
        }
コード例 #4
0
ファイル: CompaniesScopeNode.cs プロジェクト: 0anion0/IBN
        private void LoadCompanies()
        {
            foreach (ICompanyInfo companyInfo in GetCompanyElements())
            {
                CompanyScopeNode companyScopeNode = new CompanyScopeNode(companyInfo);
                this.Children.Add(companyScopeNode);

                // Domain Alias
            #if DEBUG
                ScopeNode domainAliasesScopeNode = new ScopeNode();
                companyScopeNode.Children.Add(domainAliasesScopeNode);

                DataElement domainAliases = new DataElement(DataElementType.DomainAliases,
                    string.Empty,
                    SnapInResources.ScopeNodeDispayName_DomainAliases);

                domainAliasesScopeNode.DisplayName = domainAliases.DisplayName;
                domainAliasesScopeNode.Tag = domainAliases;
                domainAliasesScopeNode.ImageIndex = 5;
                domainAliasesScopeNode.SelectedImageIndex = 5;
            #endif
            }
        }