Ejemplo n.º 1
0
        protected virtual void OnNewFolder(object sender, EventArgs args)
        {
            var srvNode = new FormFolderNode();

            var folder = formFolder.CreateFormViewFolder();

            folder.Name        = "NewFolder" + DateTime.Now.ToString("yyyy-MM-dd hh:mm:sss");
            srvNode.formFolder = folder;
            this.formFolder.FormViewFolders.AddChild(folder);
            this.Children.Add(srvNode);
            srvNode.Text = srvNode.Name = folder.Name;
            this.TreeNode.Expand();
        }
Ejemplo n.º 2
0
        protected virtual void OnNewFolder(object sender, EventArgs args)
        {
            var srvNode = new FormFolderNode();

            var folder = formFolder.CreateFormViewFolder();
            folder.Name = "NewFolder" + DateTime.Now.ToString("yyyy-MM-dd hh:mm:sss");
            srvNode.formFolder = folder;
            this.formFolder.FormViewFolders.AddChild(folder);
            this.Children.Add(srvNode);
            srvNode.Text = srvNode.Name = folder.Name;
            this.TreeNode.Expand();
        }