private void AddMarkedItemsToModOrDLC(bool addToDLC) { RequestFileAdd?.Invoke(this, new Tuple <List <IWitcherArchive>, List <AssetExplorerItem>, bool>(Archives, MarkedFiles.ToList(), addToDLC)); MarkedFiles.Clear(); }
private void QuickAddFile(AssetExplorerItem itemToAdd, bool addToDlC) { RequestFileAdd?.Invoke(this, new Tuple <List <IWitcherArchive>, List <AssetExplorerItem>, bool>(Archives, new List <AssetExplorerItem> { itemToAdd }, addToDlC)); }
private void AddDLCFile_Click(object sender, EventArgs e) { if (pathlistview.Items.Count < 1) { if (fileListView.SelectedItems.Count > 0) { foreach (WitcherListViewItem item in fileListView.SelectedItems) { if (!item.IsDirectory) { var cont = false; foreach (WitcherListViewItem i in pathlistview.Items) { if (i.Text == item.FullPath) { cont = true; } } if (!cont) { var tempnode = new WitcherListViewItem { ImageKey = GetImageKey(item.FullPath), Text = item.FullPath, ToolTipText = item.FullPath, IsDirectory = item.IsDirectory, Node = item.Node, FullPath = item.FullPath }; pathlistview.Items.Add(tempnode); } } } } } RequestFileAdd.Invoke(this, new Tuple <List <IWitcherArchive>, List <WitcherListViewItem>, bool>(Managers, SelectedPaths, true)); pathlistview.Items.Clear(); }
private void AddDLCFile_Click(object sender, EventArgs e) { if (pathlistview.Items.Count < 1) { if (fileListView.SelectedItems.Count > 0) { foreach (WitcherListViewItem item in fileListView.SelectedItems) { if (!item.IsDirectory) { var cont = false; foreach (WitcherListViewItem i in pathlistview.Items) { if (i.Text == item.RelativePath) { cont = true; } } if (!cont) { var tempnode = new WitcherListViewItem { ImageKey = GetImageKey(item.RelativePath), Text = item.RelativePath, ToolTipText = item.RelativePath, IsDirectory = item.IsDirectory, Node = item.Node, RelativePath = item.RelativePath }; pathlistview.Items.Add(tempnode); } } } } } RequestFileAdd?.Invoke(this, new AddFileArgs(Managers, SelectedPaths, true, checkBoxUncook.Checked, checkBoxExport.Checked)); pathlistview.Items.Clear(); }
private void addFileToolStripMenuItem_Click(object sender, EventArgs e) { RequestFileAdd?.Invoke(this, new RequestFileArgs { File = GetExplorerString(modFileList.SelectedNode?.FullPath ?? "") }); }