private void picRoom_Click(object sender, EventArgs e)
        {
            pnlMID.Controls.Clear();
            FrmRoomManager frm1 = new FrmRoomManager();

            frm1.TopLevel = false;
            pnlMID.Controls.Add(frm1);
            frm1.Show();
        }
        private void FrmMain_Load(object sender, EventArgs e)
        {
            //foreach (Control item in this.Controls)
            //{
            //    if (item.GetType().ToString() == "System.Windows.Forms.Label")
            //    {
            //        item.Font = UI_FontUtil.SetMainFont();
            //    }
            //}

            var type = GetCurrentChassisType();

            if (type == ChassisTypes.Laptop || type == ChassisTypes.Notebook)
            {
                iBattery.Visible = true;
            }

            SetClassLong(this.Handle, GCL_STYLE, GetClassLong(this.Handle, GCL_STYLE) | CS_DropSHADOW); //API函数加载,实现窗体边框阴影效果

            DateTime tmCur = DateTime.Now;

            if (tmCur.Hour < 8 || tmCur.Hour > 18)
            {//晚上
                label3.Text = "(*´▽`)ノノ晚上好," + LoginInfo.WorkerName;
                btnHello.BackgroundImage = Resources.月亮;
            }
            else if (tmCur.Hour > 8 && tmCur.Hour < 12)
            {//上午
                label3.Text = "上午好," + LoginInfo.WorkerName;
                btnHello.BackgroundImage = Resources.早上;
            }
            else
            {//下午
                label3.Text = "下午好," + LoginInfo.WorkerName;
                btnHello.BackgroundImage = Resources.咖啡;
            }
            int n = Convert.ToInt32(new WorkerCheckService().SelectToDayCheckInfoByWorkerNo(LoginInfo.WorkerNo));

            if (n > 0)
            {
                linkLabel1.Text      = "已打卡";
                linkLabel1.ForeColor = Color.Green;
                linkLabel1.LinkColor = Color.Green;
            }
            notifyIcon1.Text = "TS酒店管理系统-" + LoginInfo.WorkerName + "-版本号:" + System.Windows.Forms.Application.ProductVersion.ToString();
            wk_WorkerName    = LoginInfo.WorkerName;
            pnlMID.Controls.Clear();
            FrmRoomManager frm1 = new FrmRoomManager();

            frm1.TopLevel = false;
            pnlMID.Controls.Add(frm1);
            frm1.Show();
        }
        private void picRoom_Click(object sender, EventArgs e)
        {
            //picReser.BackgroundImage = Resources.预约管理;
            picRoom.BackgroundImage      = Resources.预订管理ab;
            picExtend.BackgroundImage    = Resources.扩展功能_ib;
            picCustomer.BackgroundImage  = Resources.用户管理_ib;
            picCommodity.BackgroundImage = Resources.商品消费_ia;
            pnlMID.Controls.Clear();
            FrmRoomManager frm1 = new FrmRoomManager();

            frm1.TopLevel = false;
            pnlMID.Controls.Add(frm1);
            frm1.Show();
        }
        private void FrmMain_Load(object sender, EventArgs e)
        {
            SetClassLong(this.Handle, GCL_STYLE, GetClassLong(this.Handle, GCL_STYLE) | CS_DropSHADOW); //API函数加载,实现窗体边框阴影效果
            foreach (Control label in this.Controls)
            {
                if (label.GetType().ToString() == "System.Windows.Forms.Label")
                {
                    label.Font = UI_FontUtil.SetMainFont();
                }
            }
            DateTime tmCur = DateTime.Now;

            if (tmCur.Hour < 8 || tmCur.Hour > 18)
            {//晚上
                label3.Text = "(*´▽`)ノノ晚上好,";
                label5.Text = LoginInfo.WorkerName;
            }
            else if (tmCur.Hour > 8 && tmCur.Hour < 12)
            {//上午
                label3.Text = "上午好,";
                label5.Text = LoginInfo.WorkerName;
            }
            else
            {//下午
                label3.Text = "下午好,";
                label5.Text = LoginInfo.WorkerName;
            }
            int n = Convert.ToInt32(WorkerCheckManager.SelectToDayCheckInfoByWorkerNo(LoginInfo.WorkerNo));

            if (n > 0)
            {
                linkLabel1.Text      = "已打卡";
                linkLabel1.ForeColor = Color.Green;
                linkLabel1.LinkColor = Color.Green;
            }
            notifyIcon1.Text = "TS酒店管理系统-版本号:" + System.Windows.Forms.Application.ProductVersion.ToString();
            wk_WorkerName    = LoginInfo.WorkerName;
            //Opacity = 0.0; //窗体透明度为0
            //fadeTimer.Start(); //计时开始
            picRoom.BackgroundImage     = Resources.预订管理ab;
            picExtend.BackgroundImage   = Resources.扩展功能_ib;
            picCustomer.BackgroundImage = Resources.用户管理_ib;
            //CheckUpdate();
            pnlMID.Controls.Clear();
            FrmRoomManager frm1 = new FrmRoomManager();

            frm1.TopLevel = false;
            pnlMID.Controls.Add(frm1);
            frm1.Show();
        }