Пример #1
0
        private void button6_Click(object sender, EventArgs e)
        {
            FrmRoomAndDesk f = FrmRoomAndDesk.Instance;

            f.FormClosed += f1_FormClosed;
            f.Show();
        }
Пример #2
0
        private void btnRoom_Click(object sender, EventArgs e)
        {
            FrmRoomAndDesk frod = FrmRoomAndDesk.Instance;

            frod.LoadDeskEvent = LoadDeskBySelectedTab;
            frod.LoadRoomEvent = ReloadRoom;
            //frod.Page = tabMain.SelectedTab;//tabpage在增加或者注销房间后不是原来的SelectedTab了,要动态获得
            frod.GetTabPage = GetTabPage;

            //非实时显示增加餐桌
            //frod.FormClosed += frod_FormClosed;

            frod.Show();
        }