summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-01-03 21:00:20 +0000
committersr55 <[email protected]>2009-01-03 21:00:20 +0000
commit0b30a330672919074117c371de7d1fee4ff5cbbc (patch)
tree19ce2d17288a8ccc32de9f09b8a39a11329cf9a7 /win/C#/Functions
parent6a22d98935aced40eef5279465f6cba645d04731 (diff)
WinGui
- Decoupled the Activity window from frmMain and frmQueue. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2056 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions')
-rw-r--r--win/C#/Functions/Encode.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/win/C#/Functions/Encode.cs b/win/C#/Functions/Encode.cs
index 7c3f436fa..99db0bc94 100644
--- a/win/C#/Functions/Encode.cs
+++ b/win/C#/Functions/Encode.cs
@@ -25,6 +25,7 @@ namespace Handbrake.Functions
// Declarations
Process hbProc = new Process();
+ Boolean encoding = false;
// CLI output is based on en-US locale,
static readonly private CultureInfo Culture = new CultureInfo("en-US", false);
@@ -47,6 +48,7 @@ namespace Handbrake.Functions
if (Properties.Settings.Default.cli_minimized == "Checked")
cliStart.WindowStyle = ProcessWindowStyle.Minimized;
hbProc = Process.Start(cliStart);
+ encoding = true;
// Set the process Priority
switch (Properties.Settings.Default.processPriority)
@@ -83,6 +85,7 @@ namespace Handbrake.Functions
/// </summary>
public void afterEncodeAction()
{
+ encoding = false;
// Do something whent he encode ends.
switch (Properties.Settings.Default.CompletionOption)
{
@@ -168,5 +171,13 @@ namespace Handbrake.Functions
}
}
+ /// <summary>
+ /// Returns whether HandBrake is currently encoding or not.
+ /// </summary>
+ public Boolean isEncoding
+ {
+ get { if (encoding == false) return false; else return true; }
+ }
+
}
}