Exemple #1
0
 private void btnGoodsInfo_Click(object sender, EventArgs e)
 {
     tclMain.TabPages.Add("商品信息", "商品信息", 1);
     TabPage newpage = tclMain.TabPages[tclMain.TabCount - 1];
     GoodsViewer viewer = new GoodsViewer();
     newpage.Controls.Add(viewer);
     viewer.Dock = DockStyle.Fill;
     tclMain.SelectedIndex = tclMain.TabCount - 1;
     newpage.SuspendLayout();
     newpage.ResumeLayout(false);
     newpage.PerformLayout();
 }
Exemple #2
0
 /// <summary>
 /// 商品信息
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void tsmGoodsInfo_Click(object sender, EventArgs e)
 {
     TabPage page = new TabPage("商品信息");
     GoodsViewer viewer = new GoodsViewer();
     page.Controls.Add(viewer);
     viewer.Dock = DockStyle.Fill;
     this.tclMain.TabPages.Add(page);
 }