Example #1
0
        //#region 查看订单鼠标移动事件
        //private void pbxOrder_MouseMove(object sender, MouseEventArgs e)
        //{
        //    pbxOrder.Image = Image.FromFile(Application.StartupPath + @"\Images\主界面\查看订单选中.png");
        //}

        //private void pbxOrder_MouseLeave(object sender, EventArgs e)
        //{
        //    pbxOrder.Image = Image.FromFile(Application.StartupPath + @"\Images\主界面\查看订单.png");
        //}
        //#endregion
        //#region 服务按钮鼠标移动事件

        //private void pbxService_MouseMove(object sender, MouseEventArgs e)
        //{
        //    pbxService.Image = Image.FromFile(Application.StartupPath + @"\Images\主界面\服务按钮选中.png");
        //}

        //private void pbxService_MouseLeave(object sender, EventArgs e)
        //{
        //    pbxService.Image = Image.FromFile(Application.StartupPath + @"\Images\主界面\服务按钮.png");
        //}
        //#endregion

        #endregion

        #region 界面打开
        #region 打开菜品界面
        private void pbxFood_Click(object sender, EventArgs e)
        {
            FrmFood ff = new FrmFood();

            ff.Show();
            plMain.Controls.Clear();
            plMain.Controls.Add(ff);
            pbxFood.Image     = Image.FromFile(Application.StartupPath + @"\Images\主界面\菜品选中.png");
            pbxSchedule.Image = Image.FromFile(Application.StartupPath + @"\Images\主界面\进度.png");
            pbxPay.Image      = Image.FromFile(Application.StartupPath + @"\Images\主界面\结账.png");
            pbxActivity.Image = Image.FromFile(Application.StartupPath + @"\Images\主界面\活动.png");
            sel = "菜品";
        }
Example #2
0
        private void FrmFoodMain_Load(object sender, EventArgs e)
        {
            Transmit.FrmFoodMain = this;
            pbxFood.Image        = Image.FromFile(Application.StartupPath + @"\Images\主界面\菜品选中.png");
            FrmFood ff = new FrmFood();

            ff.Show();
            plMain.Controls.Clear();
            plMain.Controls.Add(ff);
            sel = "菜品";
            pbxPay_Click(sender, e);
            pbxFood_Click(sender, e);
        }