Пример #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);
        }
Пример #2
0
        private void btnDepot_Click(object sender, EventArgs e)
        {
            refreshNotificationOnButton();
            closeSubMenu();
            TriangleCorner1.Hide();
            TriangleCorner2.Hide();

            TriangleCorner4.Show();
            TriangleCorner5.Hide();
            TriangleCorner6.Hide();
            TriangleCorner7.Hide();
            //
            PanelColorDepot.Show();
            PanelColorMain.Hide();
            PanelColorProduct.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-blue.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;
            btnWareHouse.ForeColor = System.Drawing.Color.FromArgb(86, 197, 250);
            //
            wareHouseCtr = new WareHouseCtr();
            panelMain.Controls.Clear();
            panelMain.Controls.Add(wareHouseCtr);
            //if (flag == 0)
            //{
            //    panelMain.Controls.Clear();
            //    panelMain.Controls.Add(productCtr);
            //}
            //else
            //{

            //}
            //flag = 1;
        }
Пример #3
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();
        }
Пример #4
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();
        }
Пример #5
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();
        }