コード例 #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
        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;
        }