private void button3_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count == 0) { return; } var itm = (listView1.SelectedItems[0].Tag as LibraryItem); if (itm.isPkg == false) { return; } if (itm.itm == null) { MessageBox.Show("Não é possivel descompactar o PKG."); return; } if (itm.itm.ItsPS3 && itm.path.ToLower().Contains("packages")) { File.Move(itm.path, Settings.Instance.downloadDir + Path.DirectorySeparatorChar + Path.GetFileName(itm.path)); } DownloadWorker dw = new DownloadWorker(itm.itm, this); dw.Start(); }
private void button3_Click() { if (listView1.SelectedItems.Count == 0) { return; } var itm = (LibraryItem)listView1.SelectedItems[0]; if (itm.isPkg == false) { return; } if (itm.itm == null) { MessageBox.Show("Can't unpack unknown pkg"); return; } if (itm.itm.ItsPS3 && itm.path.ToLower().Contains("packages")) { File.Move(itm.path, Settings.Instance.DownloadDir + Path.DirectorySeparatorChar + Path.GetFileName(itm.path)); } var dw = new DownloadWorker(itm.itm); dw.Start(); }