Esempio n. 1
0
        private void pnlViet_Click(object sender, EventArgs e)
        {
            Viet menu = new Viet();

            menu.Show();
            this.Hide();
        }
Esempio n. 2
0
        //Dish d = new Dish();
        //List<Dish> menulist = new List<Dish>();

        public Viet()
        {
            InitializeComponent();
            this.AutoScroll = true;

            // Header
            BasePage bpage = new BasePage();
            Panel    p     = bpage.GetHeaderPanel();

            pnlHeader.Location        = new Point(0, p.Location.Y + p.Size.Height);
            pnlHeader.Size            = new Size(1265, 490);
            pnlHeader.BackgroundImage = OOP_PROJECT.Properties.Resources.mn1;
            this.Controls.Add(pnlHeader);

            Viet f = this;

            Burger.DisplayMenuItems(Program.menuViet, pnlHeader.Bottom, f);
        }