Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
 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])));
     }
 }
Ejemplo n.º 4
0
 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])));
     }
 }