Esempio n. 1
0
 public static LocationControl GetInstance()
 {
     if (_instance == null)
     {
         _instance = new LocationControl();
     }
     return(_instance);
 }
Esempio n. 2
0
 public static Location GetLocationObject(this string location, ServiceDbContext context = null)
 {
     if (context == null)
     {
         return(LocationControl.GetInstance().GetLocation(location));
     }
     else
     {
         return(LocationControl.GetInstance().GetLocation(context, location));
     }
 }
Esempio n. 3
0
 public static IList <Location> GetChildren(this Location location, bool locationIsAlreadyValidated = false)
 {
     return(LocationControl.GetInstance().GetChildren(location, locationIsAlreadyValidated));
 }
Esempio n. 4
0
 public static bool IsWithin(this Location location, string within)
 {
     return(LocationControl.GetInstance().IsWithin(location.Name, within));
 }