Example #1
0
 public EditWindow()
 {
     InitializeComponent();
     LoginBox.Text    = MainWindow.selectedSet.Login;
     LocationBox.Text = MainWindow.selectedSet.Location;
     PasswordBox.Text = PasswordProtect.DecryptStringAES(MainWindow.selectedSet.Password, MainWindow.Secret);
 }
Example #2
0
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            string pass = PasswordProtect.DecryptStringAES(value.ToString(), MainWindow.Secret);

            return(pass);
        }