示例#1
0
 private void ShowCredentialsManager()
 {
     using (var mgr = new CredentialManager(this.persistence))
         mgr.ShowDialog();
 }
        private void CredentialManagerPicturebox_Click(object sender, EventArgs e)
        {
            // backup previously selected item
            Guid selectedCredentialId = Guid.Empty;
            var selectedCredential = this.credentialDropdown.SelectedItem as ICredentialSet;
            if (selectedCredential != null)
                selectedCredentialId = selectedCredential.Id;

            using (var mgr = new CredentialManager(this.persistence))
                mgr.ShowDialog();

            this.FillCredentialsCombobox(selectedCredentialId);
        }