diff options
author | sr55 <[email protected]> | 2012-10-07 19:04:49 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-10-07 19:04:49 +0000 |
commit | 6171d00692520927dc2fcc9bb43106bda15803b6 (patch) | |
tree | 3c9e846fa904ad66789d8104fe86acbbaffe034e /win/CS/HandBrake.ApplicationServices/Services/Encode.cs | |
parent | 5a3ba3bfe9121d14a691441093f0d191d4410be5 (diff) |
WinGui: API Tidyup Part 1 of many
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5007 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services/Encode.cs')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Services/Encode.cs | 32 |
1 files changed, 5 insertions, 27 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/Encode.cs b/win/CS/HandBrake.ApplicationServices/Services/Encode.cs index 49ff66bd2..18457af85 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/Encode.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/Encode.cs @@ -195,12 +195,12 @@ namespace HandBrake.ApplicationServices.Services }
// Fire the Encode Started Event
- this.Invoke_encodeStarted(EventArgs.Empty);
+ this.InvokeEncodeStarted(EventArgs.Empty);
}
catch (Exception exc)
{
encodeQueueTask.Status = QueueItemStatus.Error;
- this.Invoke_encodeCompleted(
+ this.InvokeEncodeCompleted(
new EncodeCompletedEventArgs(
false, null, "An Error occured when trying to encode this source. "));
throw;
@@ -236,35 +236,13 @@ namespace HandBrake.ApplicationServices.Services // No need to report anything to the user. If it fails, it's probably already stopped.
}
- this.Invoke_encodeCompleted(
+ this.InvokeEncodeCompleted(
exc == null
? new EncodeCompletedEventArgs(true, null, string.Empty)
: new EncodeCompletedEventArgs(false, exc, "An Unknown Error has occured when trying to Stop this encode."));
}
/// <summary>
- /// Attempt to Safely kill a DirectRun() CLI
- /// NOTE: This will not work with a MinGW CLI
- /// Note: http://www.cygwin.com/ml/cygwin/2006-03/msg00330.html
- /// </summary>
- public void SafelyStop()
- {
- if ((int)this.processHandle == 0)
- return;
-
- // Allow the CLI to exit cleanly
- Win32.SetForegroundWindow((int)this.processHandle);
- SendKeys.Send("^C");
- SendKeys.Flush();
-
- /*/if (HbProcess != null)
- //{
- // HbProcess.StandardInput.AutoFlush = true;
- // HbProcess.StandardInput.WriteLine("^c^z");
- //}*/
- }
-
- /// <summary>
/// Shutdown the service.
/// </summary>
public void Shutdown()
@@ -314,7 +292,7 @@ namespace HandBrake.ApplicationServices.Services }
this.currentTask.Status = QueueItemStatus.Completed;
- this.Invoke_encodeCompleted(new EncodeCompletedEventArgs(true, null, string.Empty));
+ this.InvokeEncodeCompleted(new EncodeCompletedEventArgs(true, null, string.Empty));
}
/// <summary>
@@ -399,7 +377,7 @@ namespace HandBrake.ApplicationServices.Services ElapsedTime = DateTime.Now - this.startTime,
};
- this.Invoke_encodeStatusChanged(eventArgs);
+ this.InvokeEncodeStatusChanged(eventArgs);
if (this.WindowsSeven.IsWindowsSeven)
{
|