Example #1
0
        private void InitTree()
        {
            vTree.Nodes.Clear();
            NodeRecord nodeRecord = new NodeRecord();

            nodeRecord.Name       = LangCtrl.GetString("node_FilesByDate", "Files By Date Uploaded");
            nodeRecord.RecType    = NodeType.ROOT_NODE;
            nodeRecord.ImgIdx     = 0;
            nodeRecord.FolderPath = string.Empty;
            ROOT            = new vTreeNode(nodeRecord.Name);
            ROOT.ImageIndex = 0;
            ROOT.Tag        = nodeRecord;
            vTree.Nodes.Add(ROOT);
            TreeNode = ROOT.Nodes;
        }
Example #2
0
 public void InitTree(string Title)
 {
     vTree.Nodes.Clear();
     ROOT            = new vTreeNode(Title);
     ROOT.ImageIndex = 0;
     ROOT.Tag        = null;
     vTree.Nodes.Add(this.ROOT);
     TreeNode = this.ROOT.Nodes;
     using (RPM_Account rpmAccount = new RPM_Account())
     {
         Account account = rpmAccount.GetAccount(this.AccountID);
         ROOT.Nodes.Add(new vTreeNode(string.Format("{0} [{1}]", account.ToString(), account.BadgeNumber))
         {
             ImageIndex = 1,
             Tag        = account.Id
         });
     }
 }
Example #3
0
        public void InitTree()
        {
            SetLanguage();
            vTree.Nodes.Clear();
            vAcctList.Items.Clear();
            NodeRecord nodeRecord = new NodeRecord();

            nodeRecord.Name    = LangCtrl.GetString("mnode_Dept", "Departments");
            nodeRecord.RecType = NodeType.ROOT_NODE;
            nodeRecord.ImgIdx  = 0;
            nodeRecord.RecIdx  = Guid.Empty;
            ROOT            = new vTreeNode(nodeRecord.Name);
            ROOT.ImageIndex = 0;
            ROOT.Tag        = nodeRecord;
            vTree.Nodes.Add(ROOT);
            TreeNode = ROOT.Nodes;
            if (LoadDepartments() > 0)
            {
                btn_ResetList.Visible = false;
                CheckUnassigned();
            }
            vAcctList.SelectedIndex = -1;
        }
Example #4
0
 private void InitTree()
 {
     try
     {
         this.vTree.Nodes.Clear();
         NodeRecord nodeRecord = new NodeRecord()
         {
             Name    = LangCtrl.GetString("node_CatSets", "Catalog Sets"),
             RecType = NodeType.ROOT_NODE,
             ImgIdx  = 0,
             RecIdx  = Guid.Empty
         };
         this.ROOT = new vTreeNode(nodeRecord.Name)
         {
             ImageIndex = 0,
             Tag        = nodeRecord
         };
         this.vTree.Nodes.Add(this.ROOT);
         this.TreeNode = this.ROOT.Nodes;
     }
     catch
     {
     }
 }