コード例 #1
0
        private void pnlDrinks_Click(object sender, EventArgs e)
        {
            Drinks menu = new Drinks();

            menu.Show();
            this.Hide();
        }
コード例 #2
0
        //Dish d = new Dish();
        //List<Dish> menulist = new List<Dish>();

        public Drinks()
        {
            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._10_DRINKS;
            this.Controls.Add(pnlHeader);

            Drinks f = this;

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