public MainViewModel()
 {
     instance        = this;
     this.Apiservice = new Apiservice();
     GetFromDataBase().GetAwaiter();
     SearchString = string.Empty;
 }
Esempio n. 2
0
 public EditProductViewModel(Product product)
 {
     this.product     = product;
     apiservice       = new Apiservice();
     IsEnabled        = true;
     this.ImageSource = product.ImageFullPath;
 }
Esempio n. 3
0
 public AddProductViewModel()
 {
     apiservice       = new Apiservice();
     IsEnabled        = true;
     this.ImageSource = "Noproduct";
 }
Esempio n. 4
0
 public ProductsViewModel()
 {
     instance        = this;
     this.apiService = new Apiservice();
     this.LoadProducts();
 }
Esempio n. 5
0
 public ProducItemViewModel()
 {
     apiservice = new Apiservice();
 }
Esempio n. 6
0
 public LoginViewModel()
 {
     this.apiservice   = new Apiservice();
     this.IsEnabled    = true;
     this.IsRemembered = true;
 }