示例#1
0
        public Connection(string FromString, ElementCollection ElemeCollection)
        {
            First  = ElemeCollection[FromString.Substring(0, 5)];
            Second = ElemeCollection[FromString.Substring(5, 5)];
            PermeabilityDirection = int.Parse(FromString.Substring(29, 1));
            Distance1             = double.Parse(FromString.Substring(30, 10));
            Distance2             = double.Parse(FromString.Substring(40, 10));
            Area = double.Parse(FromString.Substring(50, 10));

            if (FromString.Length > 60)
            {
                string temp = FromString.Substring(60, FromString.Length - 60).Trim();
                if (temp != string.Empty)
                {
                    CosineAngle = double.Parse(temp);
                }
            }
        }
示例#2
0
 public TimesOutput(TimeSpan TotalTime, ElementCollection elements)
 {
     this.TotalTime = TotalTime;
     Elements       = elements;
 }