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