Beispiel #1
0
 private void PasswordPanelEntry_GotFocus(object sender, RoutedEventArgs e)
 {
     if (PasswordPanelEntry.Text.Equals("Enter your private key here"))
     {
         PasswordPanelEntry.SelectAll();
     }
 }
Beispiel #2
0
        private void ShowPasswordPanel(EncryptDecryptOperation encryptDecryptOperation, string filePath)
        {
            kPw.EncryptDecryptDone = false;

            PasswordPanelOperation.Content = encryptDecryptOperation.ToString();

            PasswordPanelOperation.Foreground = Colour.SolidColorBrush(encryptDecryptOperation);

            PasswordPanelFileName.Content = kPwFile.TmpName;

            PasswordPanel.Visibility = Visibility.Visible;

            PasswordPanelEntry.Focus();
        }