public static GeoCoordinate GetMyVehicleCoordinate() { List <VehicleLocal> lstVehicle = VehicleLocalDB.GetActiveVehicleLocal(); if (lstVehicle.Count == 0) { return(null); } double dblLongitude = lstVehicle[0].Longitude; double dblLatitude = lstVehicle[0].Latitude; return(new GeoCoordinate(dblLatitude, dblLongitude)); }
public static bool SetLocal(GeoCoordinate gCoordinate) { List <VehicleLocal> lstLocal = null; lstLocal = VehicleLocalDB.GetActiveVehicleLocal(); if (lstLocal.Count > 0) { return(false); } SavePosition(gCoordinate); return(true); }
public static int CountActive() { List <VehicleLocal> lstVehicle = VehicleLocalDB.GetActiveVehicleLocal(); return(lstVehicle.Count); }