コード例 #1
0
 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 );
     }
 }
コード例 #2
0
 public void CreateNewVault( string fn, string pw )
 {
     CurrentVault = new Vault ( pw );
     CurrentVaultFileName = fn;
 }