private void MENU10(object sender, EventArgs e) { if (view.getsetListView.SelectedItems[0].Tag.ToString() == "file") { FileMethods m = new FileMethods(FileMethods.Combine(view.getsetFi, view.getsetListView.SelectedItems[0].Text)); m.Accept(visitor); } else { FolderMethods m = new FolderMethods(FolderMethods.Combine(view.getsetFi, view.getsetListView.SelectedItems[0].Text)); m.Accept(visitor); } }
private void decryptClickedRealize(object sender, EventArgs e) { if (view.getsetListView.SelectedItems.Count > 0) { if (view.getsetListView.SelectedItems[0].Tag.ToString() == "file") { FileMethods m = new FileMethods(FileMethods.Combine(view.getsetFi, view.getsetListView.SelectedItems[0].Text)); CesarEncrypt.setKey(int.Parse(view.getsetEncryptTExtBox)); m.Accept(CesarEncrypt); } else { FolderMethods m = new FolderMethods(FolderMethods.Combine(view.getsetFi, view.getsetListView.SelectedItems[0].Text)); CesarEncrypt.setKey(int.Parse(view.getsetEncryptTExtBox)); m.Accept(CesarEncrypt); } } }