2 This file is part of the HandBrake source code.
\r
3 Homepage: <http://handbrake.fr>.
\r
4 It may be used under the terms of the GNU General Public License. */
\r
6 namespace HandBrake.ApplicationServices.Functions
\r
8 using System.Diagnostics;
\r
10 using HandBrake.ApplicationServices.Views;
\r
13 /// Useful functions which various screens can use.
\r
15 public static class Main
\r
18 /// Get the Process ID of HandBrakeCLI for the current instance.
\r
20 /// <returns>A list of processes</returns>
\r
21 public static Process[] GetCliProcess()
\r
23 return Process.GetProcessesByName("HandBrakeCLI");
\r
27 /// Show the Exception Window
\r
29 /// <param name="shortError">
\r
30 /// The short error.
\r
32 /// <param name="longError">
\r
35 public static void ShowExceptiowWindow(string shortError, string longError)
\r
37 ExceptionWindow exceptionWindow = new ExceptionWindow();
\r
38 exceptionWindow.Setup(shortError, longError);
\r
39 exceptionWindow.Show();
\r