private void addFileToolStripMenuItem_Click(object sender, EventArgs e) { if (treeFileFolders.SelectedNode == null) { return; } TreeNode TN = treeFileFolders.SelectedNode; frmFileProperties fp = new frmFileProperties(TN.FullPath); if (fp.ShowDialog(this) != System.Windows.Forms.DialogResult.OK) { return; } PackageDataUtilities.AddNewFile(Package, fp.file); CreateFileFolder(fp.file.FolderName); LoadFileList(); }
private void propertiesToolStripMenuItem_Click(object sender, EventArgs e) { if (lstFiles.SelectedItems.Count == 0) { return; } if (lstFiles.SelectedItems.Count > 1) { return; } PKGFile f = (PKGFile)lstFiles.SelectedItems[0].Tag; frmFileProperties frm = new frmFileProperties(f); if (frm.ShowDialog(this) != System.Windows.Forms.DialogResult.OK) { return; } LoadFileList(); }