예제 #1
0
        private void BasicInformBut_MouseEnter(object sender, EventArgs e)
        {
            WorkPanel.Controls.Add(BasicMenuPanel);    //重新加载基础信息子菜单
            BasicMenuPanel.BringToFront();             //基础信息子菜单顶层显示
            BasicInformBut.BackColor = Color.Black;    //选基础信息BUt背景变成黑色

            #region  非选择的button变成默认颜色
            HomeBut.BackColor                 = Color.Transparent;
            SystemManagmentBut.BackColor      = Color.Transparent;             //系统管理But
            OutIntWarehouseBut.BackColor      = Color.Transparent;             //出入库But
            StatisticalStatementBut.BackColor = Color.Transparent;             //统计报表But

            #endregion

            BasicMenuPanel.Visible = true;             //基础信息Panel显示

            #region  隐藏Panel


            SystemManagPanel.Visible          = false;                   //系统管理Panel
            OutIntWarehousePanel.Visible      = false;                   //出入库Panel
            StatisticalStatementPanel.Visible = false;                   //统计报表Panel

            #endregion
        }
예제 #2
0
        private void Master_Load(object sender, EventArgs e)
        {
            #region  拉框全部是顶层控件

            BasicMenuPanel.BringToFront();
            SystemManagPanel.BringToFront();
            OutIntWarehousePanel.BringToFront();
            StatisticalStatementPanel.BringToFront();

            #endregion
        }