public FileSystemEditor(VirtPackage virtPackage, TreeView fsFolderTree, ListView fsFilesList, Label fsFolderInfoFullName, ComboBox fsFolderInfoIsolationCombo, ToolStripButton fsAddBtn, ToolStripButton fsRemoveBtn, ToolStripButton fsAddEmptyDirBtn, ToolStripButton fsSaveFileAsBtn, ToolStripButton fsAddDirBtn) { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); this.virtPackage = virtPackage; this.fsFolderTree = fsFolderTree; this.fsFilesList = fsFilesList; this.fsFolderInfoFullName = fsFolderInfoFullName; this.fsFolderInfoIsolationCombo = fsFolderInfoIsolationCombo; this.fsAddBtn = fsAddBtn; this.fsRemoveBtn = fsRemoveBtn; this.fsAddEmptyDirBtn = fsAddEmptyDirBtn; this.fsSaveFileAsBtn = fsSaveFileAsBtn; this.fsAddDirBtn = fsAddDirBtn; fsFolderInfoFullName.Text = ""; fsFolderInfoIsolationCombo.Text = ""; fsFolderInfoIsolationCombo.Items.Add(PackageEditor.Messages.Messages.fullAccess); fsFolderInfoIsolationCombo.Items.Add(PackageEditor.Messages.Messages.isolated); if (VirtPackage.PkgVer > 1) { fsFolderInfoIsolationCombo.Items.Add(PackageEditor.Messages.Messages.strictlyIsolated); } fsFolderTree.AfterSelect += OnFolderTreeSelect; fsFolderInfoIsolationCombo.SelectionChangeCommitted += OnFolderSandboxChange; fsAddBtn.Click += OnAddBtnClick; fsAddDirBtn.Click += OnAddDirBtnClick; fsRemoveBtn.Click += OnRemoveBtnClick; fsAddEmptyDirBtn.Click += OnAddEmptyDirBtnClick; fsSaveFileAsBtn.Click += OnSaveFileAsBtnClick; fsFilesList.KeyDown += Vfs_KeyDown; fsFolderTree.KeyDown += Vfs_KeyDown; dirty = false; treeHelper = new TreeHelper(virtPackage); // delegate for AddFileOrFolderRecursive init Del_AddFOrFR = new DelegateAddFileOrFolderRecursive(this.AddFileOrFolderRecursive); }
public FileSystemEditor(VirtPackage virtPackage, TreeView fsFolderTree, ListView fsFilesList, Label fsFolderInfoFullName, ComboBox fsFolderInfoIsolationCombo, ToolStripButton fsAddBtn, ToolStripButton fsRemoveBtn, ToolStripButton fsAddEmptyDirBtn, ToolStripButton fsSaveFileAsBtn, ToolStripButton fsAddDirBtn) { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); this.virtPackage = virtPackage; this.fsFolderTree = fsFolderTree; this.fsFilesList = fsFilesList; this.fsFolderInfoFullName = fsFolderInfoFullName; this.fsFolderInfoIsolationCombo = fsFolderInfoIsolationCombo; this.fsAddBtn = fsAddBtn; this.fsRemoveBtn = fsRemoveBtn; this.fsAddEmptyDirBtn = fsAddEmptyDirBtn; this.fsSaveFileAsBtn = fsSaveFileAsBtn; this.fsAddDirBtn = fsAddDirBtn; fsFolderInfoFullName.Text = ""; fsFolderInfoIsolationCombo.Text = ""; fsFolderInfoIsolationCombo.Items.Add(PackageEditor.Messages.Messages.fullAccess); fsFolderInfoIsolationCombo.Items.Add(PackageEditor.Messages.Messages.isolated); fsFolderInfoIsolationCombo.Items.Add(PackageEditor.Messages.Messages.strictlyIsolated); fsFolderTree.AfterSelect += OnFolderTreeSelect; fsFolderInfoIsolationCombo.SelectionChangeCommitted += OnFolderSandboxChange; fsAddBtn.Click += OnAddBtnClick; fsAddDirBtn.Click += OnAddDirBtnClick; fsRemoveBtn.Click += OnRemoveBtnClick; fsAddEmptyDirBtn.Click += OnAddEmptyDirBtnClick; fsSaveFileAsBtn.Click += OnSaveFileAsBtnClick; fsFilesList.KeyDown += Vfs_KeyDown; fsFolderTree.KeyDown += Vfs_KeyDown; dirty = false; treeHelper = new TreeHelper(virtPackage); // delegate for AddFileOrFolderRecursive init Del_AddFOrFR = new DelegateAddFileOrFolderRecursive(this.AddFileOrFolderRecursive); }