CA2211: Non-constant fields should not be visible.

This commit is contained in:
XhmikosR 2014-09-05 03:15:08 +03:00
parent 84e3b6ae3d
commit a330e67381
6 changed files with 14 additions and 14 deletions

View File

@ -11,13 +11,13 @@ namespace Nikse.SubtitleEdit.Logic.DetectEncoding
public static class EncodingTools
{
// this only contains ascii, default windows code page and unicode
public static int[] PreferredEncodingsForStream;
static int[] PreferredEncodingsForStream;
// this contains all codepages, sorted by preference and byte usage
public static int[] PreferredEncodings;
static int[] PreferredEncodings;
// this contains all codepages, sorted by preference and byte usage
public static int[] AllEncodings;
static int[] AllEncodings;
/// <summary>

View File

@ -84,13 +84,13 @@ namespace Nikse.SubtitleEdit.Logic
readonly List<string> ArrayOfCodingMode = new List<string> { "MPEG1", "MPEG2" };
readonly List<string> ArrayOfNTSCResolution = new List<string> { "720x480", "704x480", "352x480", "352x240" };
readonly List<string> ArrayOfPALResolution = new List<string> { "720x576", "704x576", "352x576", "352x288" };
public static List<string> ArrayOfLanguageCode = new List<string> { " ", "aa", "ab", "af", "am", "ar", "as", "ay", "az", "ba", "be", "bg", "bh", "bi", "bn", "bo", "br", "ca", "co", "cs", "cy", "da", "de", "dz", "el",
public static readonly List<string> ArrayOfLanguageCode = new List<string> { " ", "aa", "ab", "af", "am", "ar", "as", "ay", "az", "ba", "be", "bg", "bh", "bi", "bn", "bo", "br", "ca", "co", "cs", "cy", "da", "de", "dz", "el",
"en", "eo", "es", "et", "eu", "fa", "fi", "fj", "fo", "fr", "fy", "ga", "gd", "gl", "gn", "gu", "ha", "he", "hi", "hr", "hu", "hy", "ia", "id", "ie", "ik",
"in", "is", "it", "iu", "iw", "ja", "ji", "jw", "ka", "kk", "kl", "km", "kn", "ko", "ks", "ku", "ky", "la", "ln", "lo", "lt", "lv", "mg", "mi", "mk", "ml",
"mn", "mo", "mr", "ms", "mt", "my", "na", "ne", "nl", "no", "oc", "om", "or", "pa", "pl", "ps", "pt", "qu", "rm", "rn", "ro", "ru", "rw", "sa", "sd", "sg",
"sh", "si", "sk", "sl", "sm", "sn", "so", "sq", "sr", "ss", "st", "su", "sv", "sw", "ta", "te", "tg", "th", "ti", "tk", "tl", "tn", "to", "tr", "ts", "tt",
"tw", "ug", "uk", "ur", "uz", "vi", "vo", "wo", "xh", "yi", "yo", "za", "zh", "zu", ""};
public static List<string> ArrayOfLanguage = new List<string> { "Not Specified", "Afar", "Abkhazian", "Afrikaans", "Amharic", "Arabic", "Assamese", "Aymara", "Azerbaijani", "Bashkir", "Byelorussian", "Bulgarian", "Bihari", "Bislama", "Bengali; Bangla", "Tibetan", "Breton", "Catalan", "Corsican", "Czech(Ceske)", "Welsh", "Dansk", "Deutsch", "Bhutani", "Greek",
public static readonly List<string> ArrayOfLanguage = new List<string> { "Not Specified", "Afar", "Abkhazian", "Afrikaans", "Amharic", "Arabic", "Assamese", "Aymara", "Azerbaijani", "Bashkir", "Byelorussian", "Bulgarian", "Bihari", "Bislama", "Bengali; Bangla", "Tibetan", "Breton", "Catalan", "Corsican", "Czech(Ceske)", "Welsh", "Dansk", "Deutsch", "Bhutani", "Greek",
"English", "Esperanto", "Espanol", "Estonian", "Basque", "Persian", "Suomi", "Fiji", "Faroese", "Français", "Frisian", "Irish", "Scots Gaelic", "Galician", "Guarani", "Gujarati", "Hausa", "Hebrew", "Hindi", "Hrvatski", "Magyar", "Armenian", "Interlingua", "Indonesian", "Interlingue", "Inupiak",
"Indonesian", "Islenska", "Italiano", "Inuktitut", "Hebrew", "Japanese", "Yiddish", "Javanese", "Georgian", "Kazakh", "Greenlandic", "Cambodian", "Kannada", "Korean", "Kashmiri", "Kurdish", "Kirghiz", "Latin", "Lingala", "Laothian", "Lithuanian", "Latvian, Lettish", "Malagasy", "Maori", "Macedonian", "Malayalam",
"Mongolian", "Moldavian", "Marathi", "Malay", "Maltese", "Burmese", "Nauru", "Nepali", "Nederlands", "Norsk", "Occitan", "(Afan) Oromo", "Oriya", "Punjabi", "Polish", "Pashto, Pushto", "Portugues", "Quechua", "Rhaeto-Romance", "Kirundi", "Romanian", "Russian", "Kinyarwanda", "Sanskrit", "Sindhi", "Sangho",

View File

@ -13,7 +13,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
public class Pac : SubtitleFormat
{
public static TimeCode PacNullTime = new TimeCode(655, 35, 00, 0);
public static readonly TimeCode PacNullTime = new TimeCode(655, 35, 00, 0);
/// <summary>
/// Contains Swedish, Danish, German, Spanish, and French letters

View File

@ -8,8 +8,8 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
public class UnknownSubtitle59 : SubtitleFormat
{
public static Regex RegexTimeCodes = new Regex(@"^\d\d\:\d\d\:\d\d\t.+\t\d\d\:\d\d\:\d\d$", RegexOptions.Compiled);
public static Regex RegexTimeCodes2 = new Regex(@"^\d\d\:\d\d\:\d\d.+\d\d\:\d\d\:\d\d$", RegexOptions.Compiled);
public static readonly Regex RegexTimeCodes = new Regex(@"^\d\d\:\d\d\:\d\d\t.+\t\d\d\:\d\d\:\d\d$", RegexOptions.Compiled);
public static readonly Regex RegexTimeCodes2 = new Regex(@"^\d\d\:\d\d\:\d\d.+\d\d\:\d\d\:\d\d$", RegexOptions.Compiled);
static Regex regexStartOnly = new Regex(@"^\d\d\:\d\d\:\d\d\t.+$", RegexOptions.Compiled);
static Regex regexEndOnly = new Regex(@"\d\d\:\d\d\:\d\d$", RegexOptions.Compiled);
public override string Extension

View File

@ -5,7 +5,7 @@ namespace Nikse.SubtitleEdit.Logic
{
public class TimeCode
{
public static TimeCode MaxTime = new TimeCode(99, 59, 59, 999);
public static readonly TimeCode MaxTime = new TimeCode(99, 59, 59, 999);
double _totalMilliseconds;

View File

@ -2361,11 +2361,11 @@ namespace Nikse.SubtitleEdit.Logic
return userWordListXmlFileName;
}
public static string UppercaseLetters = GetLetters(true, false, false);
public static string LowercaseLetters = GetLetters(false, true, false);
public static string LowercaseLettersWithNumbers = GetLetters(false, true, true);
public static string AllLetters = GetLetters(true, true, false);
public static string AllLettersAndNumbers = GetLetters(true, true, true);
public static readonly string UppercaseLetters = GetLetters(true, false, false);
public static readonly string LowercaseLetters = GetLetters(false, true, false);
public static readonly string LowercaseLettersWithNumbers = GetLetters(false, true, true);
public static readonly string AllLetters = GetLetters(true, true, false);
public static readonly string AllLettersAndNumbers = GetLetters(true, true, true);
private static string GetLetters(bool uppercase, bool lowercase, bool numbers)
{