Exemplo n.º 1
0
        private void tsm_Subject_Click(object sender, EventArgs e)
        {
            TreeNode node = tv_DataTree.SelectedNode;

            if (node != null && node.Tag != null)
            {
                if (!node.Tag.Equals(ControlType.Plan))
                {
                    if (node.Tag.Equals(ControlType.Plan_Project))
                    {
                        Frm_Wroking frm = new Frm_Wroking(node, LoadTreeList);
                        frm.Show();
                        frm.cbo_Project_HasNext.SelectedIndex = 3;
                        frm.Cbo_Project_HasNext_SelectionChangeCommitted(null, null);
                        frm.tab_Menu.SelectedIndex = frm.tab_Menu.TabCount - 1;
                    }
                    else if (node.Tag.Equals(ControlType.Plan_Topic))
                    {
                        Frm_Wroking frm = new Frm_Wroking(node, LoadTreeList);
                        frm.Show();
                        frm.cbo_Topic_HasNext.SelectedIndex = 1;
                        frm.Cbo_Topic_HasNext_SelectionChangeCommitted(null, null);
                        frm.tab_Menu.SelectedIndex = frm.tab_Menu.TabCount - 1;
                    }
                }
            }
        }
Exemplo n.º 2
0
 private void Tv_DataTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
 {
     if (e.Node.Tag != null)
     {
         Frm_Wroking frm = new Frm_Wroking(e.Node, LoadTreeList);
         frm.Show();
     }
 }
Exemplo n.º 3
0
        private void Pic_Add_Click(object sender, EventArgs e)
        {
            TreeNode node = new TreeNode()
            {
                Name = UserHelper.GetUser().SpecialId, Tag = ControlType.Plan_Project
            };
            Frm_Wroking frm_Wroking = new Frm_Wroking(node, LoadTreeList);

            frm_Wroking.Show();
        }
Exemplo n.º 4
0
        private void Pic_Add_Click(object sender, EventArgs e)
        {
            TreeNode node = new TreeNode()
            {
                Name = rootId, Tag = ControlType.Plan
            };
            Frm_Wroking frm_Wroking = new Frm_Wroking(node, LoadTreeList);

            frm_Wroking.Show();
        }
Exemplo n.º 5
0
 private void Tv_DataTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         if (!e.Node.Tag.Equals(ControlType.Plan))
         {
             Frm_Wroking frm = new Frm_Wroking(e.Node, LoadTreeList);
             frm.Show();
         }
     }
 }
Exemplo n.º 6
0
        private void tsm_Project_Click(object sender, EventArgs e)
        {
            TreeNode node = tv_DataTree.SelectedNode;

            if (node != null && node.Tag != null)
            {
                Frm_Wroking frm = new Frm_Wroking(node, LoadTreeList);
                frm.cbo_Special_HasNext.SelectedIndex = 2;
                frm.Cbo_Special_HasNext_SelectedIndexChanged(null, null);
                frm.tab_Menu.SelectedIndex = frm.tab_Menu.TabCount - 1;
                frm.Show();
            }
        }
Exemplo n.º 7
0
        private void 课题TToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TreeNode node = tv_DataTree.SelectedNode;

            if (!node.Tag.Equals(ControlType.Plan))
            {
                Frm_Wroking frm = new Frm_Wroking(node, LoadTreeList);
                frm.cbo_Project_HasNext.SelectedIndex = 2;
                frm.Cbo_Project_HasNext_SelectionChangeCommitted(sender, e);
                frm.tab_Menu.SelectedIndex = frm.tab_Menu.TabCount - 1;
                frm.Show();
            }
            else
            {
                TreeNode _node = new TreeNode()
                {
                    Name = UserHelper.GetUser().SpecialId, Tag = ControlType.Topic
                };
                Frm_Wroking frm_Wroking = new Frm_Wroking(_node, LoadTreeList);
                frm_Wroking.Show();
            }
        }