Пример #1
0
        /// <summary>
        /// Displays the dialog.
        /// </summary>
        public bool ShowDialog(X509Certificate2 certificate)
        {
            CertificateStoreCTRL.StoreType = null;
            CertificateStoreCTRL.StorePath = null;
            PrivateKeyCB.SelectedIndex     = 0;
            PropertiesCTRL.Initialize(certificate);

            if (ShowDialog() != DialogResult.OK)
            {
                return(false);
            }

            return(true);
        }
Пример #2
0
 /// <summary>
 /// Called when a server is picked in the browse control.
 /// </summary>
 private void OnElementSelected(TsCDaBrowseElement element)
 {
     PropertiesCTRL.Initialize(element);
 }