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