コード例 #1
0
ファイル: Program.cs プロジェクト: khabib97/bcc-ca-client
        private static void SetUpSmartCard(Boolean canMoveNext)
        {
            if (Environment.Is64BitProcess)
            {
                Constants.PKCS11_LIBRARY_PATH = @"x64\eTPKCS11.dll";
            }
            else
            {
                Constants.PKCS11_LIBRARY_PATH = @"x32\eTPKCS11.dll";
            }

            try
            {
                File.Exists(Constants.PKCS11_LIBRARY_PATH);
            }
            catch (Exception ex)
            {
                canMoveNext = false;
                System.Diagnostics.Debug.WriteLine("DLL Not Found : " + ex);
                MessagePrompt.ShowDialog("Pkcs11.dll Not Found! Update Your App", "Error!");
            }
        }
コード例 #2
0
        /// <summary>
        /// The ShowDialog
        /// </summary>
        /// <param name="text">The text<see cref="string"/></param>
        /// <param name="caption">The caption<see cref="string"/></param>
        /// <returns>The <see cref="string"/></returns>
        public static void ShowDialog(string label, string caption)
        {
            MessagePrompt prompt = new MessagePrompt(label, caption);

            prompt.ShowDialog();
        }