Esempio n. 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="itsDAL"> The instance of the DAL layer for accessing the DB functions. </param>
 public BL_Process(IDAL itsDAL)
 {
     this.itsDAL     = itsDAL;
     currUser        = null;
     dataLeakageTool = new DataLeakageTool();
     fileCryptoTool  = new FileCryptoTool();
 }
Esempio n. 2
0
 private void Enter_Click(object sender, RoutedEventArgs e)
 {
     if (Password.Password == "")
     {
         System.Windows.MessageBox.Show("Please enter a password");
     }
     else if (choose == 0)
     {
         FileCryptoTool cryptoTool = new FileCryptoTool();
         System.Windows.MessageBox.Show(cryptoTool.encrypt(pathFile, pathFolder, Password.Password));
     }
     else
     {
         FileCryptoTool cryptoTool = new FileCryptoTool();
         System.Windows.MessageBox.Show(cryptoTool.decrypt(pathFile, pathFolder, Password.Password));
     }
     Password.Password = "";
 }