コード例 #1
0
ファイル: CustomAction.cs プロジェクト: jonaslsl/modSIC
        public static ActionResult SelectCertificate(Session session)
        {
            try
            {
                FileBrowser fileBrowser = new FileBrowser(session);

                Thread worker = new Thread(fileBrowser.Run);
                worker.SetApartmentState(ApartmentState.STA);
                worker.Start();
                worker.Join();

                return ActionResult.Success;
            }
            catch(Exception ex)
            {
                session.Log(ex.Message);
                return ActionResult.Failure;
            }
        }