Example #1
0
 private void addFolderToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     Renamer x = new Renamer("<Folder Name>", false);
     if (x.ShowDialog() != DialogResult.OK)
         return;
     advTree1.Enabled = listView1.Enabled = menuStrip1.Enabled = false;
     ((FATXFolderEntry)advTree1.Tag).AddFolder(x.FileName);
     lastselected = new Node();
     node_NodeClick(null, null);
     advTree1.Enabled = listView1.Enabled = menuStrip1.Enabled = true;
 }
Example #2
0
        private void addFolderToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Renamer x = new Renamer("<Folder Name>", false);

            if (x.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            advTree1.Enabled = listView1.Enabled = menuStrip1.Enabled = false;
            ((FATXFolderEntry)advTree1.Tag).AddFolder(x.FileName);
            lastselected = new Node();
            node_NodeClick(null, null);
            advTree1.Enabled = listView1.Enabled = menuStrip1.Enabled = true;
        }
Example #3
0
        private void addFileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DJsIO x = new DJsIO(DJFileMode.Open, "Open", "", true);

            if (!x.Accessed)
            {
                return;
            }
            Renamer rename = new Renamer(x.FileNameShort, true);

            if (rename.ShowDialog() != DialogResult.OK)
            {
                x.Close();
                return;
            }
            xPackage.MakeFile(rename.FileName, x, ((FolderEntry)advTree1.SelectedNode.DataKey).EntryID, AddType.NoOverWrite);
            Log("Done adding");
        }
Example #4
0
        private void addFolderToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Renamer y = new Renamer("", true);

            if (y.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            string xPath = "";

            if (advTree1.SelectedNode != advTree1.Nodes[0])
            {
                xPath = ((CFolderEntry)advTree1.SelectedNode.Tag).Path + "/" + y.FileName;
            }
            else
            {
                xPath = y.FileName;
            }
            if (!xsession.AddFolder(xPath))
            {
                return;
            }
            advTree1.SelectedNode.Nodes.Add(GetFoldNode(xsession.GetFolder(xPath)));
        }
Example #5
0
        private void renameToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (listView1.SelectedItems.Count != 1)
            {
                return;
            }
            Renamer x = new Renamer(listView1.SelectedItems[0].Text, false);

            if (x.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            listView1.Enabled = false;
            status            = "Renaming";
            FATXFileEntry y = ((FATXFileEntry)listView1.SelectedItems[0].Tag);

            y.Name = x.FileName;
            if (y.WriteEntry())
            {
                refresh();
            }
            listView1.Enabled = true;
            status            = "Idle";
        }
Example #6
0
 private void addFileToolStripMenuItem_Click(object sender, EventArgs e)
 {
     DJsIO x = new DJsIO(DJFileMode.Open, "Open", "", true);
     if (!x.Accessed)
         return;
     Renamer rename = new Renamer(x.FileNameShort, true);
     if (rename.ShowDialog() != DialogResult.OK)
     {
         x.Close();
         return;
     }
     xPackage.MakeFile(rename.FileName, x, ((FolderEntry)advTree1.SelectedNode.DataKey).EntryID, AddType.NoOverWrite);
     Log("Done adding");
 }
Example #7
0
 private void renameToolStripMenuItem_Click(object sender, EventArgs e)
 {
     CFileEntry val = (CFileEntry)listView1.SelectedItems[0].Tag;
     Renamer x = new Renamer(val.Name, true);
     if (x.ShowDialog() != DialogResult.OK)
         return;
     listView1.SelectedItems[0].Text = val.Name = x.FileName;
 }
Example #8
0
 private void renameToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     CFolderEntry x = (CFolderEntry)advTree1.SelectedNode.Tag;
     Renamer y = new Renamer(x.Name, true);
     if (y.ShowDialog() != DialogResult.OK)
         return;
     node1.Text = x.Name = y.FileName;
 }
Example #9
0
 private void addFolderToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Renamer y = new Renamer("", true);
     if (y.ShowDialog() != DialogResult.OK)
         return;
     string xPath = "";
     if (advTree1.SelectedNode != advTree1.Nodes[0])
         xPath = ((CFolderEntry)advTree1.SelectedNode.Tag).Path + "/" + y.FileName;
     else xPath = y.FileName;
     if (!xsession.AddFolder(xPath))
         return;
     advTree1.SelectedNode.Nodes.Add(GetFoldNode(xsession.GetFolder(xPath)));
 }
Example #10
0
 private void renameToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (listView1.SelectedItems.Count != 1)
         return;
     Renamer x = new Renamer(listView1.SelectedItems[0].Text, false);
     if (x.ShowDialog() != DialogResult.OK)
         return;
     listView1.Enabled = false;
     status = "Renaming";
     FATXFileEntry y = ((FATXFileEntry)listView1.SelectedItems[0].Tag);
     y.Name = x.FileName;
     if (y.WriteEntry())
         refresh();
     listView1.Enabled = true;
     status = "Idle";
 }