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