Exemplo n.º 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);
            }
        }
Exemplo n.º 2
0
 public static void ShowWindow()
 {
     UtilityCasewareIdea.ShowWindow();
 }