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