Formatting.

This commit is contained in:
XhmikosR 2014-09-28 21:37:38 +03:00
parent c7ee1076b2
commit 32381d6d1c
11 changed files with 15 additions and 21 deletions

View File

@ -1,10 +1,7 @@
using Nikse.SubtitleEdit.Logic;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Windows.Forms;
using System.Xml;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -2085,7 +2085,6 @@ namespace Nikse.SubtitleEdit.Forms
if (key.Length == 0 || value.Length == 0 || key == value || Utilities.IsInteger(key))
return;
var cb = comboBoxWordListLanguage.Items[comboBoxWordListLanguage.SelectedIndex] as ComboBoxLanguage;
if (cb == null)
return;

View File

@ -160,7 +160,6 @@ namespace Nikse.SubtitleEdit.Logic
}
}
/// <summary>
/// Retrieves the specified registry subkey value.
/// </summary>

View File

@ -44,7 +44,6 @@ namespace Nikse.SubtitleEdit.Logic
var doc = LoadXmlReplaceListDocument();
var userDoc = LoadXmlReplaceListUserDocument();
WordReplaceList = LoadReplaceList(doc, "WholeWords");
_partialWordReplaceListAlways = LoadReplaceList(doc, "PartialWordsAlways");
_partialWordReplaceList = LoadReplaceList(doc, "PartialWords");

View File

@ -84,7 +84,8 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
System.Windows.Forms.RichTextBox rtBox = null;
try
{
rtBox = new System.Windows.Forms.RichTextBox {
rtBox = new System.Windows.Forms.RichTextBox
{
Rtf = rtf
};

View File

@ -8,7 +8,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
public class SonyDVDArchitect : SubtitleFormat
{
static Regex Regex = new Regex(@"^\d\d:\d\d:\d\d:\d\d[ ]+-[ ]+\d\d:\d\d:\d\d:\d\d", RegexOptions.Compiled);
private static Regex Regex = new Regex(@"^\d\d:\d\d:\d\d:\d\d[ ]+-[ ]+\d\d:\d\d:\d\d:\d\d", RegexOptions.Compiled);
public override string Extension
{

View File

@ -356,7 +356,7 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers.MpcHC
if (_form != null)
{
_form.OnCopyData -= OnCopyData;
// _form.Dispose(); this give an error when doing File -> Exit...
//_form.Dispose(); this gives an error when doing File -> Exit...
_form = null;
}

View File

@ -217,6 +217,5 @@ namespace Test.Logic
}
}
}
}