public AutoInputConstants() { System.Globalization.CultureInfo culture = System.Globalization.CultureInfo.CreateSpecificCulture("en"); culture.NumberFormat.NumberDecimalSeparator = "."; Thread.CurrentThread.CurrentCulture = culture; _ICP = new IntCollection(); _THL = new IntDoublePairCollection(); _THU = new IntDoublePairCollection(); _UZR = new IntDoublePairCollection(); }
private void InitializeFromEighthLine(string line, StreamReader reader) { string[] values = line.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries); NTHL = UtilLib.ConvertToInt(values[0], 0); THL = new IntDoublePairCollection(); for (int i = 0; i < NTHL; i++) { string newLine = reader.ReadLine(); string[] newValues = newLine.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries); THL.Add(new IntDoublePair(UtilLib.ConvertToInt(newValues[0]), UtilLib.ConvertToDouble(newValues[1]))); } }
private void InitializeFromTenthLine(string line, StreamReader reader) { string[] values = line.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries); NUZR = UtilLib.ConvertToInt(values[0], 0); UZR = new IntDoublePairCollection(); for (int i = 0; i < NUZR; i++) { string newLine = reader.ReadLine(); string[] newValues = newLine.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries); UZR.Add(new IntDoublePair(UtilLib.ConvertToInt(newValues[0]), UtilLib.ConvertToDouble(newValues[1]))); } }