public void OpenVault( string pw ) { try { CurrentVault = new Vault ( CurrentVaultFileName, pw ); } catch ( VaultOpeningException ) { MessageBox.Show ( "Invalid Password, please try again", "Error Opening Vault", MessageBoxButton.OK, MessageBoxImage.Hand ); } }
public void CreateNewVault( string fn, string pw ) { CurrentVault = new Vault ( pw ); CurrentVaultFileName = fn; }