public void KP_AreaParking() { CommandStart.Start(doc => { KP.Parking.Area.AreaParkingService aps = new KP.Parking.Area.AreaParkingService(); aps.Calc(); }); }
public AreaParking(ObjectId idPolyline, AreaParkingService service) { Service = service; using (var t = service.Db.TransactionManager.StartTransaction()) { idPl = idPolyline; var pl = idPl.GetObject(OpenMode.ForRead, false, true) as Polyline; Area = Math.Round(pl.Area, 2); Load(pl); t.Commit(); } }