Example #1
0
 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);
     }
 }
Example #2
0
 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);
         }
     }
 }