Ejemplo n.º 1
0
        private void Collection_click(object sender, EventArgs e)
        {
            ToolStripMenuItem item      = (ToolStripMenuItem)sender;
            TreeNode          node      = (TreeNode)item.Tag;
            ImageTree         imageTree = (ImageTree)node.Tag;
            string            type      = imageTree.NodeType.ToString();
            string            path      = imageTree.FullPath;
            string            date      = DateTime.Now.ToString();
            Collection        coll      = new Collection(type, path, date);

            CollectionTool.Add(coll);
            LoadCollectionTree();
        }
Ejemplo n.º 2
0
        private static void addColl_click(object sender, EventArgs e)
        {
            ToolStripMenuItem item = (ToolStripMenuItem)sender;
            string            path = item.Tag.ToString();
            Collection        coll = new Collection()
            {
                Type = "Image",
                Path = path,
                Date = DateTime.Now.ToString()
            };

            CollectionTool.Add(coll);
        }