Esempio n. 1
0
 public MainWindow()
 {
     InitializeComponent();
     foreach (var s in Keyring.GetCertificateIDs())
     {
         keyBox.Items.Add(s);
     }
     keyBox.SelectedIndex = 0;
 }
Esempio n. 2
0
        private void keyBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            String selection = (String)keyBox.SelectedItem;
            var    c         = Keyring.GetCertificate(selection);

            if (c != null)
            {
                browser.NavigateToString(c.ToHTML());
            }
        }