Exemplo n.º 1
0
        private void metroTile2_Click(object sender, EventArgs e)
        {
            frmManagerStockBasicData form = new frmManagerStockBasicData();

            form.MdiParent = this;
            form.Show();
        }
        private void stockBasicDataToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmManagerStockBasicData form = new frmManagerStockBasicData();

            form.MdiParent = this;
            form.Show();
        }
Exemplo n.º 3
0
        private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
        {
            string path   = treeView1.SelectedNode.FullPath;
            string window = treeView1.SelectedNode.Name;

            lblstatus.Text = path;

            if (window == "Node6")
            {
                frmManagerStockBasicData form = new frmManagerStockBasicData();
                form.MdiParent = this;
                form.Show();
            }
            else if (window == "Node7")
            {
                frmManagerStockManagement form = new frmManagerStockManagement("BRAND");
                form.MdiParent = this;
                form.Show();
            }
            else if (window == "Node8")
            {
                frmManagerViewStock form = new frmManagerViewStock();
                form.MdiParent = this;
                form.Show();
            }
            else if (window == "Node9")
            {
                frmManagerManageArea form = new frmManagerManageArea();
                form.MdiParent = this;
                form.Show();
            }
            else if (window == "Node10")
            {
                frmManagerDistributerArea form = new frmManagerDistributerArea();
                form.MdiParent = this;
                form.Show();
            }
            else if (window == "Node11")
            {
                frmManagerViewAllAreaDistRecords form = new frmManagerViewAllAreaDistRecords();
                form.MdiParent = this;
                form.Show();
            }
            else if (window == "Node12")
            {
                frmManagerPromotion form = new frmManagerPromotion();
                form.MdiParent = this;
                form.Show();
            }
            else if (window == "Node13")
            {
                frmManagerActivePromo form = new frmManagerActivePromo();
                form.MdiParent = this;
                form.Show();
            }
            else if (window == "Node14")
            {
                frmManagerViewAllPromotion form = new frmManagerViewAllPromotion();
                form.MdiParent = this;
                form.Show();
            }
            else if (window == "Node15")
            {
                frmPromotionsToDistributers form = new frmPromotionsToDistributers();
                form.MdiParent = this;
                form.Show();
            }
            else if (window == "Node16")
            {
                ManagerViewPromotionByDistributers form = new ManagerViewPromotionByDistributers();
                form.MdiParent = this;
                form.Show();
            }
            else if (window == "Node17")
            {
                frmManagerViewPromotionByState form = new frmManagerViewPromotionByState();
                form.MdiParent = this;
                form.Show();
            }
            else if (window == "Node18")
            {
                frmManagerViewStock form = new frmManagerViewStock();
                form.MdiParent = this;
                form.Show();
            }
            else if (window == "Node19")
            {
                frmManagerViewAllAreaDistRecords form = new frmManagerViewAllAreaDistRecords();
                form.MdiParent = this;
                form.Show();
            }
            else if (window == "Node20")
            {
                frmManagerViewAllPromotion form = new frmManagerViewAllPromotion();
                form.MdiParent = this;
                form.Show();
            }
            else if (window == "Node21")
            {
                ManagerViewPromotionByDistributers form = new ManagerViewPromotionByDistributers();
                form.MdiParent = this;
                form.Show();
            }
            else if (window == "Node22")
            {
                frmManagerViewPromotionByState form = new frmManagerViewPromotionByState();
                form.MdiParent = this;
                form.Show();
            }
            else if (window == "nodedpro1")
            {
                frmManagerViewDistributersByPromotion form = new frmManagerViewDistributersByPromotion();
                form.MdiParent = this;
                form.Show();
            }
            else if (window == "nodedpro2")
            {
                frmManagerViewDistributersByPromotion form = new frmManagerViewDistributersByPromotion();
                form.MdiParent = this;
                form.Show();
            }
        }