summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/Main.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-02-26 22:39:19 +0000
committersr55 <[email protected]>2010-02-26 22:39:19 +0000
commit16f7933765671ab563d17620b071cdaf99d98bbf (patch)
treef238dbe763595acc61933206d60ba125d1a660b0 /win/C#/Functions/Main.cs
parent8c3709d289a996567d459a92d64378ddebb7d2f9 (diff)
WinGui:
- Few StyleCop warnings cleared up. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3140 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/Main.cs')
-rw-r--r--win/C#/Functions/Main.cs25
1 files changed, 8 insertions, 17 deletions
diff --git a/win/C#/Functions/Main.cs b/win/C#/Functions/Main.cs
index 758abdcc0..c99ce657a 100644
--- a/win/C#/Functions/Main.cs
+++ b/win/C#/Functions/Main.cs
@@ -14,7 +14,6 @@ namespace Handbrake.Functions
using System.Threading;
using System.Windows.Forms;
using System.Xml.Serialization;
- using EncodeQueue;
using Model;
using Parsing;
@@ -26,7 +25,7 @@ namespace Handbrake.Functions
/// <summary>
/// The XML Serializer
/// </summary>
- private static readonly XmlSerializer Ser = new XmlSerializer(typeof (List<Job>));
+ private static readonly XmlSerializer Ser = new XmlSerializer(typeof(List<Job>));
/// <summary>
/// Calculate the duration of the selected title and chapters
@@ -106,8 +105,8 @@ namespace Handbrake.Functions
int n = dataChpt.Rows.Add();
dataChpt.Rows[n].Cells[0].Value = i + 1;
dataChpt.Rows[n].Cells[1].Value = "Chapter " + (i + 1);
- dataChpt.Rows[n].Cells[0].ValueType = typeof (int);
- dataChpt.Rows[n].Cells[1].ValueType = typeof (string);
+ dataChpt.Rows[n].Cells[0].ValueType = typeof(int);
+ dataChpt.Rows[n].Cells[1].ValueType = typeof(string);
i++;
}
@@ -226,12 +225,10 @@ namespace Handbrake.Functions
else // Otherwise, use the path that is already there.
{
// Use the path and change the file extension to match the previous destination
- autoNamePath = Path.Combine(Path.GetDirectoryName(mainWindow.text_destination.Text),
- destinationFilename);
+ autoNamePath = Path.Combine(Path.GetDirectoryName(mainWindow.text_destination.Text), destinationFilename);
if (Path.HasExtension(mainWindow.text_destination.Text))
- autoNamePath = Path.ChangeExtension(autoNamePath,
- Path.GetExtension(mainWindow.text_destination.Text));
+ autoNamePath = Path.ChangeExtension(autoNamePath, Path.GetExtension(mainWindow.text_destination.Text));
}
}
@@ -279,8 +276,7 @@ namespace Handbrake.Functions
if (m.Success)
{
- string data = line.Replace("(", string.Empty).Replace(")", string.Empty).Replace("HandBrake ",
- string.Empty);
+ string data = line.Replace("(", string.Empty).Replace(")", string.Empty).Replace("HandBrake ", string.Empty);
string[] arr = data.Split(' ');
Properties.Settings.Default.hb_build = int.Parse(arr[1]);
@@ -322,8 +318,7 @@ namespace Handbrake.Functions
{
try
{
- string tempPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
- @"HandBrake\hb_queue_recovery.xml");
+ string tempPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"HandBrake\hb_queue_recovery.xml");
if (File.Exists(tempPath))
{
using (FileStream strm = new FileStream(tempPath, FileMode.Open, FileAccess.Read))
@@ -498,11 +493,7 @@ namespace Handbrake.Functions
}
catch (Exception exc)
{
- callback(new UpdateCheckResult(debug,
- new UpdateCheckInformation
- {
- Error = exc
- }));
+ callback(new UpdateCheckResult(debug, new UpdateCheckInformation { Error = exc }));
}
}));
}