Beispiel #1
0
        public static string ChoosePrimaryFile()
        {
            IdeaClient    client        = null;
            CommonDialogs commonDialogs = null;

            try
            {
                client = new IdeaClient();
                UtilityCasewareIdea.ShowWindow();
                commonDialogs = client.CommonDialogs();
                string temp = commonDialogs.FileExplorer();
                if (temp != "")
                {
                    client.OpenDatabase(temp);
                }

                return(temp);
            }
            catch (Exception)
            {
                return("");
            }
            finally
            {
                UtilityCasewareIdea.DisposeCom(client);
                UtilityCasewareIdea.DisposeCom(commonDialogs);
            }
        }