Пример #1
0
        public Tank(string name, double p1, double p2, double p3, string units, int pri, int capacity,string fuel_units, double? standpipe )
        {
            Name = name;
            Priority = pri;
            Location = new Location(p1, p2, p3, units);
            Capacity = new DenominatedAmount(capacity, fuel_units);

            if (standpipe.HasValue)
                Standpipe = new DenominatedAmount(standpipe.Value, fuel_units);
        }
Пример #2
0
 private void output_location(HtmlTextWriter writer, Location location, string p)
 {
     writer.Write("<td>{4}</td><td>{0:0.00}</td><td>{1:0.00}</td><td>{2:0.00}</td><td>{3}</td>", location.X, location.Y, location.Z, location.Unit, p);
 }