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