Exemplo n.º 1
0
 public PaymentTypesViewModel()
 {
     instance         = this;
     this.apiService  = new ApiService();
     this.dataService = new DataService();
     this.LoadPaymentTypes();
     this.IsRefreshing = false;
 }
Exemplo n.º 2
0
 private static PaymentTypesViewModel instance; // Atributo
 public static PaymentTypesViewModel GetInstance()
 {
     if (instance == null)
     {
         instance = new PaymentTypesViewModel();
     }
     return(instance);
 }