private void TrustListBTN_Click(object sender, EventArgs e)
{
try
{
// determine default store.
CertificateStoreIdentifier store = new CertificateStoreIdentifier();
if (m_trustList != null)
{
store.StoreType = m_trustList.StoreType;
store.StorePath = m_trustList.StorePath;
}
else
{
store.StoreType = Utils.DefaultStoreType;
store.StorePath = Utils.DefaultStorePath;
}
// select store.
CertificateStoreIdentifier trustList = new CertificateStoreDlg().ShowDialog(store);
if (trustList != null)
{
m_trustList = trustList;
TrustListTB.Text = m_trustList.ToString();
}
}
catch (Exception exception)
{
GuiUtils.HandleException(this.Text, System.Reflection.MethodBase.GetCurrentMethod(), exception);
}
}
#endregion