diff options
author | sr55 <[email protected]> | 2007-07-16 16:52:58 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2007-07-16 16:52:58 +0000 |
commit | 2595cd0693e666366e824fdbbfe45adade38a08e (patch) | |
tree | 44c61ec26d8a22cfc7ecfd1cf9724c22518ba696 /win/C#/frmQueue.cs | |
parent | 5e8776b2f2e87120efaae2ed509bce845c5de94c (diff) |
WinGui:
- CLI process handling code moved into its own class. Reduces code replication. Returns hbProc
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@696 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmQueue.cs')
-rw-r--r-- | win/C#/frmQueue.cs | 33 |
1 files changed, 3 insertions, 30 deletions
diff --git a/win/C#/frmQueue.cs b/win/C#/frmQueue.cs index 09b3f19c8..8d273215d 100644 --- a/win/C#/frmQueue.cs +++ b/win/C#/frmQueue.cs @@ -77,41 +77,14 @@ namespace Handbrake for (int i = 0; i < initialListCount; i++)
{
string query = list_queue.Items[0].ToString();
- Process hbProc = new Process();
- hbProc.StartInfo.FileName = "hbcli.exe";
- hbProc.StartInfo.Arguments = query;
- hbProc.StartInfo.UseShellExecute = false;
- hbProc.Start();
-
- // Set the process Priority
-
- switch (Properties.Settings.Default.processPriority)
- {
- case "Realtime":
- hbProc.PriorityClass = ProcessPriorityClass.RealTime;
- break;
- case "High":
- hbProc.PriorityClass = ProcessPriorityClass.High;
- break;
- case "Above Normal":
- hbProc.PriorityClass = ProcessPriorityClass.AboveNormal;
- break;
- case "Normal":
- hbProc.PriorityClass = ProcessPriorityClass.Normal;
- break;
- case "Low":
- hbProc.PriorityClass = ProcessPriorityClass.Idle;
- break;
- default:
- hbProc.PriorityClass = ProcessPriorityClass.BelowNormal;
- break;
- }
+ Functions.CLI process = new Functions.CLI();
+ Process hbProc = process.runCli(this, query, false, false, false, false);
+
hbProc.WaitForExit();
hbProc.Close();
hbProc.Dispose();
-
updateUIElements();
}
}
|