Esempio n. 1
0
        private void menuTableInfo_Click(object sender, EventArgs e)
        {
            FormTableInfo formTableInfo = new FormTableInfo();

            formTableInfo.Refresh += LoadHallInfo;
            formTableInfo.Show();
        }
Esempio n. 2
0
        private void TaskMenu_Click(object sender, EventArgs e)
        {
            TabPage tabPage = new TabPage();

            tabPage.Text = "餐桌管理";
            tabPage.Name = "page4";

            if (!IsInto(tabPage.Name))
            {
                FormTableInfo page = new FormTableInfo();
                //注册关闭事件
                page.close          += Close;
                page.Name            = "formpage";
                page.TopLevel        = false;
                page.FormBorderStyle = FormBorderStyle.None;
                tabPage.Controls.Add(page);
                page.LoadMain += NPOIShow;
                page.LoadMain += LoadHallInfo;
                page.Show();
                tabControl1.TabPages.Add(tabPage);
            }
            //选中该选项卡
            this.tabControl1.SelectedTab = tabControl1.TabPages["page4"];
        }