private void btnManageTable_Click(object sender, EventArgs e) { formManageTable fManageTable = new formManageTable(); fManageTable.ShowDialog(); for (int i = 0; i < tMenu.Tabs.Count; i++) { if (tMenu.Tabs[i].Text == "Bàn ăn") { tMenu.Tabs.Remove(tMenu.Tabs[i]); formTable fTable = new formTable(); loadTab(fTable, "Bàn ăn"); } } }
private void btnBook_Click(object sender, EventArgs e) { formTable fTable = new formTable(); loadTab(fTable, "Bàn ăn"); }