예제 #1
0
        private void Menucategorymodiname_Click(object sender, EventArgs e)
        {
            UCCategory    ctrl      = new UCCategory();
            FormContainer container = new FormContainer();

            container.SetControl(ctrl);
            if (container.ShowDialog() == DialogResult.OK)
            {
                navigateTree.SelectedNode.Text = ctrl.CategoryName;
                (navigateTree.SelectedNode.Tag as NCategoryInfo).CategoryName = ctrl.CategoryName;
                if ((navigateTree.SelectedNode.GetBatchNode().Tag as NBatchInfo).Operation == EOperType.eFROM_SERVER_NOTCHANGE)
                {
                }
            }
        }
예제 #2
0
        private void BatchAddCategory_Click(object sender, EventArgs e)
        {
            RadTreeNode   parentNode = sender as RadTreeNode;
            UCCategory    ctrl       = new UCCategory();
            FormContainer container  = new FormContainer();

            container.SetControl(ctrl);
            if ((container.ShowDialog() == DialogResult.OK) && !(navigateTree.SelectedNode.Tag is NFileInfo))
            {
                NCategoryInfo categoryInfo = new NCategoryInfo(ctrl.CategoryName);
                RadTreeNode   categoryNode = CreateCategoryNode(parentNode, categoryInfo);
                categoryNode.ContextMenu = this.categoryContextMenu;
                navigateTree.Refresh();
                navigateTree.SelectedNode.ExpandAll();
                Application.DoEvents();
                categoryNode.Selected = true;
                //categoryNode.ExpandAll();
                Application.DoEvents();
            }
        }