Beispiel #1
0
        public AdminViewModel()
        {
            myAdmin = new Admin();

            cmd1 = new DelegateCmnd(login, canExecute);

            cmd2 = new DelegateCmnd(viewAllProducts, canExecute);
            cmd3 = new DelegateCmnd(logout, canExecute);
        }
Beispiel #2
0
        public ProductViewModel()
        {
            product      = new Products();
            productList1 = new ObservableCollection <Products>();
            productList2 = new ObservableCollection <Products>();
            productList1 = product.DisplayProducts();

            cmd1 = new DelegateCmnd(addProduct, canExecute);
            cmd2 = new DelegateCmnd(deleteProduct, canExecute);
            cmd3 = new DelegateCmnd(addtoCart, canExecute);
        }
 public CustomerViewModel()
 {
     customer = new Customer();
     cmd1     = new DelegateCmnd(login, canExecute);
     cmd2     = new DelegateCmnd(signup, canExecute);
 }
 public FirstViewModel()
 {
     cmd1 = new DelegateCmnd(SelectedVal1, canExecute);
 }