private void menuTableManager_Click(object sender, EventArgs e)
        {
            fTableMananger f = new fTableMananger();

            f.MdiParent = this;
            f.Show();
        }
        private void menuTableManager_Click_1(object sender, EventArgs e)
        {
            if (listForm.Count != 0)
            {
                listForm[listForm.Count - 1].Close();
                listForm.RemoveAt(listForm.Count - 1);
            }
            fTableMananger f = new fTableMananger();

            listForm.Add(f);
            f.MdiParent = this;
            f.Show();
        }
        public void updateAccount(Account acc)
        {
            menuOption.Location = new Point(790 - acc.DisplayName.Length * 6, menuOption.Location.Y);

            menuAdmin.Visible        = true;
            menuInfo.Visible         = true;
            menuLogout.Visible       = true;
            menuTableManager.Visible = true;

            account = acc;
            if (acc.Type == 0)
            {
                menuAdmin.Visible = false;
            }
            menuAccName.Text = acc.DisplayName;

            fTableMananger f1 = new fTableMananger();

            listForm.Add(f1);
            f1.MdiParent = this;
            f1.Show();
        }