Beispiel #1
0
        private void btnAddTable_Click(object sender, EventArgs e)
        {
            int id = TableFoodDAL.Instance.GetMAXIDBill() + 1;

            fAddTable frm = new fAddTable(id);

            frm.ShowDialog();

            if (frm.FLAG != 0)
            {
                if (frm.FLAG == 2)
                {
                    Label lb = LoadGroup(frm.NameGroup);
                    flowLayoutPanelGroup.Controls.Add(lb);
                    AddTable(frm.ID, frm.NameTable, frm.Status, frm.NameGroup);
                    frmOrder2.AddTable(frm.ID, frm.NameTable, frm.Status, frm.NameGroup);
                    frmOrder2.AddGroup(frm.NameGroup);
                }
                else
                if (frm.FLAG == 1)
                {
                    AddTable(frm.ID, frm.NameTable, frm.Status, frm.NameGroup);
                    frmOrder2.AddTable(frm.ID, frm.NameTable, frm.Status, frm.NameGroup);
                }
            }
        }
Beispiel #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            fAddTable fAddTable = new fAddTable();

            fAddTable.ShowDialog();
            loadData();
        }