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