예제 #1
0
 public static bool OpenFileWithDefaultProgram(string filePath)
 {
     using (UseWaitCursor waitCursor = new UseWaitCursor())
     {
         try
         {
             using (Process.Start(filePath))
             {
             }
             return(true);
         }
         catch (Exception)
         {
             return(false);
         }
     }
 }
예제 #2
0
 public static bool LaunchUrl(string url)
 {
     using (UseWaitCursor waitCursor = new UseWaitCursor())
     {
         try
         {
             using (Process.Start(url))
             {
             }
             return(true);
         }
         catch (Exception)
         {
             return(false);
         }
     }
 }