Opc.Ua.Configuration.CreateAuthorityDlg.ShowDialog C# (CSharp) Method

ShowDialog() public method

Displays the dialog.
public ShowDialog ( CertificateStoreIdentifier store ) : CertificateIdentifier
store CertificateStoreIdentifier
return CertificateIdentifier
        public CertificateIdentifier ShowDialog(CertificateStoreIdentifier store)
        {
            CertificateStoreCTRL.StoreType = null;
            CertificateStoreCTRL.StorePath = null;
            ApplicationNameTB.Text = null;
            SubjectNameTB.Text = null;
            KeySizeCB.SelectedIndex = 0;
            LifeTimeInMonthsUD.Value = 60;

            if (store != null)
            {
                CertificateStoreCTRL.StoreType = store.StoreType;
                CertificateStoreCTRL.StorePath = store.StorePath;
            }

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

            return m_certificate;
        }
        #endregion