summaryrefslogtreecommitdiffstats
path: root/win/C#
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-04-23 21:01:57 +0000
committersr55 <[email protected]>2010-04-23 21:01:57 +0000
commit9d83f1c5539761bcae5b351669ac8a5c7bb1eace (patch)
tree92c3ef6cf375cc20304e08efa97f92818cdc386c /win/C#
parent94c9aefd9b79b845124d971d165a9ca50ad4594c (diff)
WinGui:
- Quality Slider tooltip fixed. - More stylecop warnings cleaned up. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3255 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#')
-rw-r--r--win/C#/Controls/AudioPanel.cs168
-rw-r--r--win/C#/Controls/Subtitles.cs1
-rw-r--r--win/C#/Controls/x264Panel.cs11
-rw-r--r--win/C#/Functions/Win32.cs11
-rw-r--r--win/C#/HandBrakeCS.5.0.ReSharper2
-rw-r--r--win/C#/Services/Encode.cs5
-rw-r--r--win/C#/Services/Queue.cs12
-rw-r--r--win/C#/Settings.StyleCop25
-rw-r--r--win/C#/frmMain.Designer.cs15
-rw-r--r--win/C#/frmMain.cs43
10 files changed, 216 insertions, 77 deletions
diff --git a/win/C#/Controls/AudioPanel.cs b/win/C#/Controls/AudioPanel.cs
index d66305c34..b3b2eaa33 100644
--- a/win/C#/Controls/AudioPanel.cs
+++ b/win/C#/Controls/AudioPanel.cs
@@ -14,14 +14,12 @@ namespace Handbrake.Controls
using Presets;
using AudioTrack = Model.AudioTrack;
+ /// <summary>
+ /// The AudioPanel Control
+ /// </summary>
public partial class AudioPanel : UserControl
{
/// <summary>
- /// The audio list has changed
- /// </summary>
- public event EventHandler AudioListChanged;
-
- /// <summary>
/// Initializes a new instance of the <see cref="AudioPanel"/> class.
/// Create a new instance of the Audio Panel
/// </summary>
@@ -33,6 +31,11 @@ namespace Handbrake.Controls
}
/// <summary>
+ /// The audio list has changed
+ /// </summary>
+ public event EventHandler AudioListChanged;
+
+ /// <summary>
/// Get the audio panel
/// </summary>
/// <returns>A listview containing the audio tracks</returns>
@@ -44,7 +47,9 @@ namespace Handbrake.Controls
/// <summary>
/// Set the File Container. This funciton is used to limit the available options for each file container.
/// </summary>
- /// <param name="path"></param>
+ /// <param name="path">
+ /// the file path
+ /// </param>
public void SetContainer(string path)
{
string oldval = drp_audioEncoder.Text;
@@ -84,7 +89,7 @@ namespace Handbrake.Controls
/// <summary>
/// Checks if the settings used required the .m4v (rather than .mp4) extension
/// </summary>
- /// <returns></returns>
+ /// <returns>True if m4v is required</returns>
public bool RequiresM4V()
{
return lv_audioList.Items.Cast<ListViewItem>().Any(item => item.SubItems[2].Text.Contains("AC3"));
@@ -93,7 +98,7 @@ namespace Handbrake.Controls
/// <summary>
/// Load an arraylist of AudioTrack items into the list.
/// </summary>
- /// <param name="audioTracks"></param>
+ /// <param name="audioTracks">List of audio tracks</param>
public void LoadTracks(ArrayList audioTracks)
{
ClearAudioList();
@@ -118,7 +123,8 @@ namespace Handbrake.Controls
/// <summary>
/// Set the Track list dropdown from the parsed title captured during the scan
/// </summary>
- /// <param name="selectedTitle"></param>
+ /// <param name="selectedTitle">The selected title</param>
+ /// <param name="preset">A preset</param>
public void SetTrackList(Title selectedTitle, Preset preset)
{
if (selectedTitle.AudioTracks.Count == 0)
@@ -129,28 +135,25 @@ namespace Handbrake.Controls
drp_audioTrack.SelectedIndex = 0;
return;
}
- else
- {
- drp_audioTrack.Items.Clear();
- drp_audioTrack.Items.Add("Automatic");
- drp_audioTrack.Items.AddRange(selectedTitle.AudioTracks.ToArray());
- if (lv_audioList.Items.Count == 0 && preset != null)
+ drp_audioTrack.Items.Clear();
+ drp_audioTrack.Items.Add("Automatic");
+ drp_audioTrack.Items.AddRange(selectedTitle.AudioTracks.ToArray());
+
+ if (lv_audioList.Items.Count == 0 && preset != null)
+ {
+ QueryParser parsed = QueryParser.Parse(preset.Query);
+ foreach (AudioTrack audioTrack in parsed.AudioInformation)
{
- QueryParser parsed = QueryParser.Parse(preset.Query);
- foreach (AudioTrack audioTrack in parsed.AudioInformation)
- {
- ListViewItem newTrack = new ListViewItem(GetNewID().ToString());
- newTrack.SubItems.Add(audioTrack.Track);
- newTrack.SubItems.Add(audioTrack.Encoder);
- newTrack.SubItems.Add(audioTrack.MixDown);
- newTrack.SubItems.Add(audioTrack.SampleRate);
- newTrack.SubItems.Add(audioTrack.Bitrate);
- newTrack.SubItems.Add(audioTrack.DRC.ToString());
- lv_audioList.Items.Add(newTrack);
- }
+ ListViewItem newTrack = new ListViewItem(GetNewID().ToString());
+ newTrack.SubItems.Add(audioTrack.Track);
+ newTrack.SubItems.Add(audioTrack.Encoder);
+ newTrack.SubItems.Add(audioTrack.MixDown);
+ newTrack.SubItems.Add(audioTrack.SampleRate);
+ newTrack.SubItems.Add(audioTrack.Bitrate);
+ newTrack.SubItems.Add(audioTrack.DRC);
+ lv_audioList.Items.Add(newTrack);
}
-
}
// Handle Native Language and "Dub Foreign language audio" and "Use Foreign language audio and Subtitles" Options
@@ -190,6 +193,16 @@ namespace Handbrake.Controls
}
// Control and ListView
+
+ /// <summary>
+ /// one of the controls has changed. Event handler
+ /// </summary>
+ /// <param name="sender">
+ /// The sender.
+ /// </param>
+ /// <param name="e">
+ /// The e.
+ /// </param>
private void controlChanged(object sender, EventArgs e)
{
Control ctl = (Control)sender;
@@ -261,6 +274,15 @@ namespace Handbrake.Controls
lv_audioList.Select();
}
+ /// <summary>
+ /// The Audio List selected index changed event handler
+ /// </summary>
+ /// <param name="sender">
+ /// The sender.
+ /// </param>
+ /// <param name="e">
+ /// The e.
+ /// </param>
private void lv_audioList_SelectedIndexChanged(object sender, EventArgs e)
{
// Set the dropdown controls based on the selected item in the Audio List.
@@ -288,12 +310,25 @@ namespace Handbrake.Controls
}
// Track Controls
+
+ /// <summary>
+ /// The Add Audio Track button event handler
+ /// </summary>
+ /// <param name="sender">
+ /// The sender.
+ /// </param>
+ /// <param name="e">
+ /// The e.
+ /// </param>
private void btn_addAudioTrack_Click(object sender, EventArgs e)
{
if (drp_audioTrack.Text == "None Found")
{
- MessageBox.Show("Your source appears to have no audio tracks that HandBrake supports.", "Warning",
- MessageBoxButtons.OK, MessageBoxIcon.Warning);
+ MessageBox.Show(
+ "Your source appears to have no audio tracks that HandBrake supports.",
+ "Warning",
+ MessageBoxButtons.OK,
+ MessageBoxIcon.Warning);
return;
}
@@ -320,28 +355,72 @@ namespace Handbrake.Controls
lv_audioList.Select();
}
+ /// <summary>
+ /// The Remove Track button event handler
+ /// </summary>
+ /// <param name="sender">
+ /// The sender.
+ /// </param>
+ /// <param name="e">
+ /// The e.
+ /// </param>
private void btn_RemoveAudioTrack_Click(object sender, EventArgs e)
{
RemoveTrack();
}
// Audio List Menu
+
+ /// <summary>
+ /// The Audio List Move Up menu item
+ /// </summary>
+ /// <param name="sender">
+ /// The sender.
+ /// </param>
+ /// <param name="e">
+ /// The e.
+ /// </param>
private void audioList_moveup_Click(object sender, EventArgs e)
{
MoveTrack(true);
}
+ /// <summary>
+ /// The audio list move down menu item
+ /// </summary>
+ /// <param name="sender">
+ /// The sender.
+ /// </param>
+ /// <param name="e">
+ /// The e.
+ /// </param>
private void audioList_movedown_Click(object sender, EventArgs e)
{
MoveTrack(false);
}
+ /// <summary>
+ /// The audio list remove menu item
+ /// </summary>
+ /// <param name="sender">
+ /// The sender.
+ /// </param>
+ /// <param name="e">
+ /// The e.
+ /// </param>
private void audioList_remove_Click(object sender, EventArgs e)
{
RemoveTrack();
}
// Public Functions
+
+ /// <summary>
+ /// Add track for preset
+ /// </summary>
+ /// <param name="item">
+ /// The item.
+ /// </param>
private void AddTrackForPreset(ListViewItem item)
{
lv_audioList.Items.Add(item);
@@ -349,6 +428,9 @@ namespace Handbrake.Controls
this.AudioListChanged(this, new EventArgs());
}
+ /// <summary>
+ /// Clear the audio list
+ /// </summary>
private void ClearAudioList()
{
lv_audioList.Items.Clear();
@@ -356,11 +438,20 @@ namespace Handbrake.Controls
this.AudioListChanged(this, new EventArgs());
}
+ /// <summary>
+ /// Get a new ID for the next audio track
+ /// </summary>
+ /// <returns>
+ /// an int
+ /// </returns>
private int GetNewID()
{
return lv_audioList.Items.Count + 1;
}
+ /// <summary>
+ /// Remove an audio track from the list
+ /// </summary>
private void RemoveTrack()
{
// Remove the Item and reselect the control if the following conditions are met.
@@ -390,6 +481,12 @@ namespace Handbrake.Controls
}
}
+ /// <summary>
+ /// Move an audio track up or down the audio list
+ /// </summary>
+ /// <param name="up">
+ /// The up.
+ /// </param>
private void MoveTrack(bool up)
{
if (lv_audioList.SelectedIndices.Count == 0) return;
@@ -409,6 +506,9 @@ namespace Handbrake.Controls
}
}
+ /// <summary>
+ /// Regenerate all the audio track id's on the audio list
+ /// </summary>
private void ReGenerateListIDs()
{
int i = 1;
@@ -419,6 +519,9 @@ namespace Handbrake.Controls
}
}
+ /// <summary>
+ /// Set the bitrate dropdown
+ /// </summary>
private void SetBitrate()
{
int max = 0;
@@ -473,10 +576,13 @@ namespace Handbrake.Controls
drp_audioBitrate.Items.Add("768");
}
- if (drp_audioBitrate.SelectedItem == null)
+ if (drp_audioBitrate.SelectedItem == null)
drp_audioBitrate.SelectedIndex = drp_audioBitrate.Items.Count - 1;
}
+ /// <summary>
+ /// Set the mixdown dropdown
+ /// </summary>
private void SetMixDown()
{
drp_audioMix.Items.Clear();
diff --git a/win/C#/Controls/Subtitles.cs b/win/C#/Controls/Subtitles.cs
index c511133ae..3326ee74e 100644
--- a/win/C#/Controls/Subtitles.cs
+++ b/win/C#/Controls/Subtitles.cs
@@ -1,5 +1,4 @@
/* Subtitles.cs $
-
This file is part of the HandBrake source code.
Homepage: <http://handbrake.fr>.
It may be used under the terms of the GNU General Public License. */
diff --git a/win/C#/Controls/x264Panel.cs b/win/C#/Controls/x264Panel.cs
index bc715f46b..4b943e32f 100644
--- a/win/C#/Controls/x264Panel.cs
+++ b/win/C#/Controls/x264Panel.cs
@@ -1,8 +1,7 @@
/* x264Panel.cs $
-
- This file is part of the HandBrake source code.
- Homepage: <http://handbrake.fr>.
- It may be used under the terms of the GNU General Public License. */
+ This file is part of the HandBrake source code.
+ Homepage: <http://handbrake.fr>.
+ It may be used under the terms of the GNU General Public License. */
namespace Handbrake.Controls
{
@@ -335,9 +334,9 @@ namespace Handbrake.Controls
int val, val2;
// default psy-rd = 1 (10 for the slider)
- psyrd = double.TryParse(x[0], out psyrd) ? psyrd*10 : 10.0;
+ psyrd = double.TryParse(x[0], out psyrd) ? psyrd * 10 : 10.0;
// default psy-trellis = 0
- psytrellis = double.TryParse(x[1], out psytrellis) ? psytrellis*10 : 0.0;
+ psytrellis = double.TryParse(x[1], out psytrellis) ? psytrellis * 10 : 0.0;
int.TryParse(psyrd.ToString(), out val);
int.TryParse(psytrellis.ToString(), out val2);
diff --git a/win/C#/Functions/Win32.cs b/win/C#/Functions/Win32.cs
index 4b3501782..e7da9d5b6 100644
--- a/win/C#/Functions/Win32.cs
+++ b/win/C#/Functions/Win32.cs
@@ -112,8 +112,19 @@ namespace Handbrake.Functions
/// </summary>
public enum ConsoleCtrlEvent
{
+ /// <summary>
+ /// Ctrl - C
+ /// </summary>
CTRL_C = 0,
+
+ /// <summary>
+ /// Ctrl - Break
+ /// </summary>
CTRL_BREAK = 1,
+
+ /// <summary>
+ /// Ctrl - Close
+ /// </summary>
CTRL_CLOSE = 2,
}
}
diff --git a/win/C#/HandBrakeCS.5.0.ReSharper b/win/C#/HandBrakeCS.5.0.ReSharper
index a3d96d833..9826bd36b 100644
--- a/win/C#/HandBrakeCS.5.0.ReSharper
+++ b/win/C#/HandBrakeCS.5.0.ReSharper
@@ -81,7 +81,7 @@
</XML>
<FileHeader><![CDATA[/* file.cs$
This file is part of the HandBrake source code.
- Homepage: <http://handbrake.fr/>.
+ Homepage: <http://handbrake.fr/>
It may be used under the terms of the GNU General Public License. */]]></FileHeader>
<GenerateMemberBody />
<Naming2>
diff --git a/win/C#/Services/Encode.cs b/win/C#/Services/Encode.cs
index 61dd51123..ba19f187a 100644
--- a/win/C#/Services/Encode.cs
+++ b/win/C#/Services/Encode.cs
@@ -3,7 +3,6 @@
Homepage: <http://handbrake.fr/>.
It may be used under the terms of the GNU General Public License. */
-
namespace Handbrake.Services
{
using System;
@@ -94,8 +93,7 @@ namespace Handbrake.Services
/// </param>
public void CreatePreviewSample(string query)
{
- Job job = new Job {Query = query};
- this.Run(job);
+ this.Run(new Job {Query = query});
}
/// <summary>
@@ -178,7 +176,6 @@ namespace Handbrake.Services
if (this.EncodeStarted != null)
this.EncodeStarted(this, new EventArgs());
-
if (this.HbProcess != null)
this.ProcessHandle = this.HbProcess.MainWindowHandle; // Set the process Handle
diff --git a/win/C#/Services/Queue.cs b/win/C#/Services/Queue.cs
index 525fd7598..4aba9774c 100644
--- a/win/C#/Services/Queue.cs
+++ b/win/C#/Services/Queue.cs
@@ -3,7 +3,6 @@
Homepage: <http://handbrake.fr/>.
It may be used under the terms of the GNU General Public License. */
-
namespace Handbrake.Services
{
using System;
@@ -22,14 +21,14 @@ namespace Handbrake.Services
public class Queue : Encode
{
/// <summary>
- /// An XML Serializer
+ /// The Queue Job List
/// </summary>
- private static XmlSerializer serializer;
+ private readonly List<Job> queue = new List<Job>();
/// <summary>
- /// The Queue Job List
+ /// An XML Serializer
/// </summary>
- private readonly List<Job> queue = new List<Job>();
+ private static XmlSerializer serializer;
/// <summary>
/// The Next Job ID
@@ -85,6 +84,9 @@ namespace Handbrake.Services
/// <param name="query">
/// The query that will be passed to the HandBrake CLI.
/// </param>
+ /// <param name="title">
+ /// The title.
+ /// </param>
/// <param name="source">
/// The location of the source video.
/// </param>
diff --git a/win/C#/Settings.StyleCop b/win/C#/Settings.StyleCop
index d6aed5926..25f6771ef 100644
--- a/win/C#/Settings.StyleCop
+++ b/win/C#/Settings.StyleCop
@@ -110,6 +110,11 @@
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
+ <Rule Name="ElementsMustBeSeparatedByBlankLine">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
</Rules>
<AnalyzerSettings />
</Analyzer>
@@ -130,6 +135,26 @@
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
+ <Rule Name="ParametersMustBeOnSameLineOrSeparateLines">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ParameterMustFollowComma">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="SplitParametersMustStartOnLineAfterDeclaration">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="UseBuiltInTypeAlias">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
</Rules>
<AnalyzerSettings />
</Analyzer>
diff --git a/win/C#/frmMain.Designer.cs b/win/C#/frmMain.Designer.cs
index da7d433cd..74d68e624 100644
--- a/win/C#/frmMain.Designer.cs
+++ b/win/C#/frmMain.Designer.cs
@@ -274,7 +274,7 @@ namespace Handbrake
this.check_turbo.Enabled = false;
this.check_turbo.Location = new System.Drawing.Point(146, 123);
this.check_turbo.Name = "check_turbo";
- this.check_turbo.Size = new System.Drawing.Size(99, 17);
+ this.check_turbo.Size = new System.Drawing.Size(101, 17);
this.check_turbo.TabIndex = 7;
this.check_turbo.Text = "Turbo first Pass";
this.ToolTip.SetToolTip(this.check_turbo, "Makes the first pass of a 2 pass encode faster.");
@@ -311,8 +311,7 @@ namespace Handbrake
this.slider_videoQuality.Size = new System.Drawing.Size(322, 45);
this.slider_videoQuality.TabIndex = 14;
this.slider_videoQuality.TickFrequency = 17;
- this.ToolTip.SetToolTip(this.slider_videoQuality, "Set the quality level of the video. Typical sane values are between 59~63%. \r\n>70" +
- "% will likely result in the output file being larger than the input file.");
+ this.ToolTip.SetToolTip(this.slider_videoQuality, "Set the quality level of the video. ");
this.slider_videoQuality.ValueChanged += new System.EventHandler(this.slider_videoQuality_Scroll);
//
// text_filesize
@@ -841,7 +840,7 @@ namespace Handbrake
this.radio_cq.BackColor = System.Drawing.Color.Transparent;
this.radio_cq.Location = new System.Drawing.Point(336, 97);
this.radio_cq.Name = "radio_cq";
- this.radio_cq.Size = new System.Drawing.Size(105, 17);
+ this.radio_cq.Size = new System.Drawing.Size(110, 17);
this.radio_cq.TabIndex = 18;
this.radio_cq.Text = "Constant Quality:";
this.radio_cq.UseVisualStyleBackColor = false;
@@ -854,7 +853,7 @@ namespace Handbrake
this.radio_avgBitrate.Checked = true;
this.radio_avgBitrate.Location = new System.Drawing.Point(336, 64);
this.radio_avgBitrate.Name = "radio_avgBitrate";
- this.radio_avgBitrate.Size = new System.Drawing.Size(112, 17);
+ this.radio_avgBitrate.Size = new System.Drawing.Size(116, 17);
this.radio_avgBitrate.TabIndex = 17;
this.radio_avgBitrate.TabStop = true;
this.radio_avgBitrate.Text = "Avg Bitrate (kbps):";
@@ -867,7 +866,7 @@ namespace Handbrake
this.radio_targetFilesize.BackColor = System.Drawing.Color.Transparent;
this.radio_targetFilesize.Location = new System.Drawing.Point(336, 37);
this.radio_targetFilesize.Name = "radio_targetFilesize";
- this.radio_targetFilesize.Size = new System.Drawing.Size(107, 17);
+ this.radio_targetFilesize.Size = new System.Drawing.Size(108, 17);
this.radio_targetFilesize.TabIndex = 16;
this.radio_targetFilesize.Text = "Target Size (MB):";
this.radio_targetFilesize.UseVisualStyleBackColor = false;
@@ -890,7 +889,7 @@ namespace Handbrake
this.check_2PassEncode.BackColor = System.Drawing.Color.Transparent;
this.check_2PassEncode.Location = new System.Drawing.Point(125, 100);
this.check_2PassEncode.Name = "check_2PassEncode";
- this.check_2PassEncode.Size = new System.Drawing.Size(106, 17);
+ this.check_2PassEncode.Size = new System.Drawing.Size(104, 17);
this.check_2PassEncode.TabIndex = 6;
this.check_2PassEncode.Text = "2-Pass Encoding";
this.check_2PassEncode.UseVisualStyleBackColor = false;
@@ -958,7 +957,7 @@ namespace Handbrake
this.Check_ChapterMarkers.BackColor = System.Drawing.Color.Transparent;
this.Check_ChapterMarkers.Location = new System.Drawing.Point(16, 32);
this.Check_ChapterMarkers.Name = "Check_ChapterMarkers";
- this.Check_ChapterMarkers.Size = new System.Drawing.Size(136, 17);
+ this.Check_ChapterMarkers.Size = new System.Drawing.Size(140, 17);
this.Check_ChapterMarkers.TabIndex = 1;
this.Check_ChapterMarkers.Text = "Create chapter markers";
this.Check_ChapterMarkers.UseVisualStyleBackColor = false;
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index 6c4a2ed93..0894d6a81 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -1628,18 +1628,8 @@ namespace Handbrake
{
// Setup the GUI components for the scan.
sourcePath = filename;
- foreach (Control ctrl in Controls)
- if (!(ctrl is StatusStrip || ctrl is MenuStrip || ctrl is ToolStrip))
- ctrl.Enabled = false;
- lbl_encode.Visible = true;
- lbl_encode.Text = "Scanning ...";
- btn_source.Enabled = false;
- btn_start.Enabled = false;
- btn_showQueue.Enabled = false;
- btn_add2Queue.Enabled = false;
- tb_preview.Enabled = false;
- mnu_killCLI.Visible = true;
+ this.DisableGUI();
if (ActivityWindow != null)
ActivityWindow.SetMode(ActivityLogMode.Scan);
@@ -1756,6 +1746,22 @@ namespace Handbrake
}
}
+ private void DisableGUI()
+ {
+ foreach (Control ctrl in Controls)
+ if (!(ctrl is StatusStrip || ctrl is MenuStrip || ctrl is ToolStrip))
+ ctrl.Enabled = false;
+
+ lbl_encode.Visible = true;
+ lbl_encode.Text = "Scanning ...";
+ btn_source.Enabled = false;
+ btn_start.Enabled = false;
+ btn_showQueue.Enabled = false;
+ btn_add2Queue.Enabled = false;
+ tb_preview.Enabled = false;
+ mnu_killCLI.Visible = true;
+ }
+
private void KillScan()
{
try
@@ -2032,22 +2038,17 @@ namespace Handbrake
/// <param name="CurrentFps"></param>
/// <param name="AverageFps"></param>
/// <param name="TimeRemaining"></param>
- private void EncodeOnEncodeProgress(object Sender, int CurrentTask, int TaskCount, float PercentComplete,
- float CurrentFps, float AverageFps, TimeSpan TimeRemaining)
+ private void EncodeOnEncodeProgress(object Sender, int CurrentTask, int TaskCount, float PercentComplete, float CurrentFps, float AverageFps, TimeSpan TimeRemaining)
{
if (this.InvokeRequired)
{
- this.BeginInvoke(new EncodeProgressEventHandler(EncodeOnEncodeProgress),
- new[]
- {
- Sender, CurrentTask, TaskCount, PercentComplete, CurrentFps, AverageFps,
- TimeRemaining
- });
+ this.BeginInvoke(
+ new EncodeProgressEventHandler(EncodeOnEncodeProgress),
+ new[] { Sender, CurrentTask, TaskCount, PercentComplete, CurrentFps, AverageFps, TimeRemaining });
return;
}
lbl_encode.Text =
- string.Format("Encode Progress: {0}%, FPS: {1}, Avg FPS: {2}, Time Remaining: {3} ",
- PercentComplete, CurrentFps, AverageFps, TimeRemaining);
+ string.Format("Encode Progress: {0}%, FPS: {1}, Avg FPS: {2}, Time Remaining: {3} ", PercentComplete, CurrentFps, AverageFps, TimeRemaining);
}
#endregion