예제 #1
0
        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();
        }