示例#1
0
 public LocationsViewModel()
 {
     instance         = this;
     this.apiService  = new ApiService();
     this.dataService = new DataService();
     this.LoadLocations();
     this.IsRefreshing = false;
 }
示例#2
0
 private static LocationsViewModel instance; // Atributo
 public static LocationsViewModel GetInstance()
 {
     if (instance == null)
     {
         instance = new LocationsViewModel();
     }
     return(instance);
 }