private void openFile(object sender, EventArgs e) { if (view.getsetListView.SelectedItems[0].Tag.ToString() == "file") { if ((view.getsetFi + "\\" + view.getsetListView.SelectedItems[0].Text).Contains(".zip")) { foldrrrr = new ZipFolder(view.getsetFi + "\\" + view.getsetListView.SelectedItems[0].Text); List <string> asss = new List <string>(); try { if (view.getsetListView.SelectedItems[0].Text.Last() == 'p') { asss = foldrrrr.GetAllFiles(); } else { } // asss = foldrrrr.GetLevelFiles(1, view.getsetFi + "\\" + view.getsetListView.SelectedItems[0].Text); } catch (Exception e1) { } view.AdLevelPath(view.getsetListView.SelectedItems[0].Text); view.getsetListView.Clear(); foreach (string i in asss) { ListViewItem lvi = new ListViewItem(); lvi.ImageIndex = 3; lvi.Text = i; lvi.Tag = "file"; view.getsetListView.Items.Add(lvi); } } try { if ((view.getsetFi + "\\" + view.getsetListView.SelectedItems[0].Text).Contains(".zip\\")) { ZipFile.OpenZipFile(view.getsetFi, view.getsetListView.SelectedItems[0].Text); } } catch (Exception wer) { } startFileButton(this, e); return; } string toAdd = view.getsetListView.SelectedItems[0].Text; view.AdLevelPath(toAdd); view.renewList(); }