/* Main.cs $ This file is part of the HandBrake source code. Homepage: . It may be used under the terms of the GNU General Public License. */ namespace HandBrake.ApplicationServices.Functions { using System.Diagnostics; /// /// Useful functions which various screens can use. /// public static class Main { /// /// Get the Process ID of HandBrakeCLI for the current instance. /// /// A list of processes public static Process[] GetCliProcess() { return Process.GetProcessesByName("HandBrakeCLI"); } /// /// Show the Exception Window /// /// /// The short error. /// /// /// The long error. /// public static void ShowExceptiowWindow(string shortError, string longError) { frmExceptionWindow exceptionWindow = new frmExceptionWindow(); exceptionWindow.Setup(shortError, longError); exceptionWindow.Show(); } } }