Esempio n. 1
0
        private void SoView_Load(object sender, EventArgs e)
        {
            for (int i = 0; i < soList.Count; i++)
            {
                SoViewControl soViewControlItem = new SoViewControl();
                soViewControlItem.Dock     = System.Windows.Forms.DockStyle.Fill;
                soViewControlItem.Location = new System.Drawing.Point(3, 3);
                soViewControlItem.Name     = "buyerOfferIems" + i;
                soViewControlItem.Size     = new System.Drawing.Size(906, 456);
                soViewControlItem.TabIndex = 0;
                soViewControlItem.FillTheTable(soList[i], selectedSoItemId);
                soViewControlList.Add(soViewControlItem);
            }

            for (int i = 0; i < soViewControlList.Count; i++)
            {
                System.Windows.Forms.TabPage tabPage = new TabPage();

                tabPage.Controls.Add(soViewControlList[i]);
                tabPage.Location = new System.Drawing.Point(4, 22);
                tabPage.Name     = "tabPage" + i;
                tabPage.Padding  = new System.Windows.Forms.Padding(3);
                tabPage.Size     = new System.Drawing.Size(941, 46297);
                tabPage.TabIndex = i;
                tabPage.Text     = "SO " + i;
                tabPage.UseVisualStyleBackColor = true;
                this.tabControl1.Controls.Add(tabPage);
            }
            tabControl1_SelectedIndexChanged(this, null);
        }
Esempio n. 2
0
        private void SoView_Load(object sender, EventArgs e)
        {
            for (int i = 0; i < soList.Count; i++)
            {
                SoViewControl soViewControlItem = new SoViewControl();
                soViewControlItem.Dock = System.Windows.Forms.DockStyle.Fill;
                soViewControlItem.Location = new System.Drawing.Point(3, 3);
                soViewControlItem.Name = "buyerOfferIems" + i;
                soViewControlItem.Size = new System.Drawing.Size(906, 456);
                soViewControlItem.TabIndex = 0;
                soViewControlItem.FillTheTable(soList[i]);
                soViewControlList.Add(soViewControlItem);
            }

            for (int i = 0; i < soViewControlList.Count; i++)
            {
                System.Windows.Forms.TabPage tabPage = new TabPage();

                tabPage.Controls.Add(soViewControlList[i]);
                tabPage.Location = new System.Drawing.Point(4, 22);
                tabPage.Name = "tabPage" + i;
                tabPage.Padding = new System.Windows.Forms.Padding(3);
                tabPage.Size = new System.Drawing.Size(941, 46297);
                tabPage.TabIndex = i;
                tabPage.Text = "SO " + i;
                tabPage.UseVisualStyleBackColor = true;
                this.tabControl1.Controls.Add(tabPage);
            }
            tabControl1_SelectedIndexChanged(this, null);
        }