Esempio n. 1
0
        private void btnHome_Click(object sender, EventArgs e)
        {
            panelMain.Controls.Clear();
            HomePageCtr home = new HomePageCtr();

            panelMain.Controls.Add(home);
            TriangleCorner1.Show();
            TriangleCorner2.Hide();

            TriangleCorner4.Hide();
            TriangleCorner5.Hide();
            TriangleCorner6.Hide();
            TriangleCorner7.Hide();
            //
            PanelColorMain.Show();
            PanelColorProduct.Hide();

            PanelColorDepot.Hide();
            PanelColorRevenue.Hide();
            PanelColorSetting.Hide();
            PanelColorHelp.Hide();
            //
            btnProduct.Image   = Image.FromFile(startupURL + "\\Icon\\menu-icon-gray.png");
            btnHelp.Image      = Image.FromFile(startupURL + "\\Icon\\help-icon-grey.png");
            btnSetting.Image   = Image.FromFile(startupURL + "\\Icon\\setting-icon-gray.png");
            btnReven.Image     = Image.FromFile(startupURL + "\\Icon\\revenue-icon-gray.png");
            btnWareHouse.Image = Image.FromFile(startupURL + "\\Icon\\box-icon-gray.png");

            btnHome.Image = Image.FromFile(startupURL + "\\Icon\\button_home_blue.png");
            //
            btnSetting.ForeColor   = System.Drawing.Color.DimGray;
            btnHelp.ForeColor      = System.Drawing.Color.DimGray;
            btnReven.ForeColor     = System.Drawing.Color.DimGray;
            btnWareHouse.ForeColor = System.Drawing.Color.DimGray;

            btnProduct.ForeColor = System.Drawing.Color.DimGray;
            btnHome.ForeColor    = System.Drawing.Color.FromArgb(86, 197, 250);

            closeSubMenu();
            refreshNotificationOnButton();
        }
Esempio n. 2
0
        private void Color_Button()
        {
            //
            TriangleCorner1.Show();
            TriangleCorner2.Hide();

            TriangleCorner4.Hide();
            TriangleCorner5.Hide();
            TriangleCorner6.Hide();
            TriangleCorner7.Hide();
            //
            PanelColorMain.Show();
            PanelColorProduct.Hide();

            PanelColorDepot.Hide();
            PanelColorRevenue.Hide();
            PanelColorSetting.Hide();
            PanelColorHelp.Hide();
            btnHome.Image = Image.FromFile(startupURL + "\\Icon\\button_home_blue.png");
            //
            PanelSubMenu.Hide();
        }