Beispiel #1
0
        private void btnHelp_Click(object sender, EventArgs e)
        {
            closeSubMenu();
            TriangleCorner1.Hide();
            TriangleCorner2.Hide();

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

            PanelColorDepot.Hide();
            PanelColorRevenue.Hide();
            PanelColorSetting.Hide();
            PanelColorHelp.Show();
            //
            btnProduct.Image   = Image.FromFile(startupURL + "\\Icon\\menu-icon-gray.png");
            btnHelp.Image      = Image.FromFile(startupURL + "\\Icon\\help-icon-blue.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\\home-icon1.png");
            //
            btnProduct.ForeColor   = System.Drawing.Color.DimGray;
            btnSetting.ForeColor   = System.Drawing.Color.DimGray;
            btnReven.ForeColor     = System.Drawing.Color.DimGray;
            btnWareHouse.ForeColor = System.Drawing.Color.DimGray;

            btnHome.ForeColor = System.Drawing.Color.DimGray;
            btnHelp.ForeColor = System.Drawing.Color.FromArgb(86, 197, 250);
        }
Beispiel #2
0
        private void btnProduct_Click(object sender, EventArgs e)
        {
            TriangleCorner1.Hide();
            TriangleCorner2.Show();

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

            PanelColorDepot.Hide();
            PanelColorRevenue.Hide();
            PanelColorSetting.Hide();
            PanelColorHelp.Hide();
            //
            btnProduct.Image   = Image.FromFile(startupURL + "\\Icon\\menu-icon-blue.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\\home-icon1.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;

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

            //
            ChangeMenuMode();

            /*panelMain.Controls.Clear();
             * Thread thrGenerating = new Thread(new ThreadStart(doWork));
             * thrGenerating.Start();*/
            productCtr = new ProductCtr();
            panelMain.Controls.Clear();
            panelMain.Controls.Add(productCtr);
            refreshNotificationOnButton();
        }
Beispiel #3
0
        private void btnReven_Click(object sender, EventArgs e)
        {
            refreshNotificationOnButton();
            closeSubMenu();
            TriangleCorner1.Hide();
            TriangleCorner2.Hide();

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

            PanelColorDepot.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-blue .png");
            btnWareHouse.Image = Image.FromFile(startupURL + "\\Icon\\box-icon-gray.png");

            btnHome.Image = Image.FromFile(startupURL + "\\Icon\\home-icon1.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.DimGray;
            btnReven.ForeColor = System.Drawing.Color.FromArgb(86, 197, 250);
            RevenCtr revenCtr = new RevenCtr();

            panelMain.Controls.Clear();
            panelMain.Controls.Add(revenCtr);
        }
Beispiel #4
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();
        }