示例#1
0
        private void 单一商品ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form childrenForm in this.MdiChildren)
            {
                //检测是不是当前子窗体名称
                if (childrenForm.Name == "G_danyi_shangpin")
                {
                    //是的话就是把他显示
                    childrenForm.Visible = true;
                    //并激活该窗体
                    childrenForm.Activate();
                    //childrenForm.WindowState = FormWindowState.Maximized;
                    return;
                }
            }
            G_danyi_shangpin yds = new G_danyi_shangpin();

            yds.MdiParent = this;
            yds.Show();
        }
示例#2
0
        private void 查询单一商品信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            G_danyi_shangpin gds = new G_danyi_shangpin();

            gds.ShowDialog();
        }