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 InitializeFromSecondLine(string line) { string[] values = line.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries); NICP = UtilLib.ConvertToInt(values[0], 0); ICP = new IntCollection(); for (int i = 0; i < NICP; i++) { ICP.Add(UtilLib.ConvertToInt(values[1 + i], 11)); } }