Ejemplo n.º 1
0
        private void viewMySalesProgressToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmDistributersMySalesProgress form = new frmDistributersMySalesProgress(lblstatus.Text);

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

            if (window == "Node1")
            {
                lblpath.Text = path;
                FrmDistributerNewPromotins form = new FrmDistributerNewPromotins(lblstatus.Text);
                form.MdiParent = this;
                form.Show();
            }
            else if (window == "Node2")
            {
                lblpath.Text = path;
                frmDistributerMyPromotionTasks form = new frmDistributerMyPromotionTasks(lblstatus.Text);
                form.MdiParent = this;
                form.Show();
            }
            else if (window == "Node4")
            {
                lblpath.Text = path;
                frmDistributersSales form = new frmDistributersSales(lblstatus.Text);
                form.MdiParent = this;
                form.Show();
            }
            else if (window == "Node6")
            {
                lblpath.Text = path;
                frmDistributerMySalesData from = new frmDistributerMySalesData(lblstatus.Text);
                from.MdiParent = this;
                from.Show();
            }
            else if (window == "Node7")
            {
                lblpath.Text = path;
                frmDistributersMySalesProgress form = new frmDistributersMySalesProgress(lblstatus.Text);
                form.MdiParent = this;
                form.Show();
            }
        }