Ejemplo n.º 1
0
 public AboutCheckViewModelDialog(int id)
 {
     historiesLogic = HistoriesLogic.GetInstance();
     Title          = "Чек №" + id;
     Informations   = new ObservableCollection <CheckInformation>(historiesLogic.GetCheckInformation(id));
     Date           = CheckInformation.DateBuy.ToString("f");
     FinishSum      = CheckInformation.FinishSum;
 }
 public OrdersPageViewModel()
 {
     historiesLogic = HistoriesLogic.GetInstance();
     Condition      = "Visible";
     Checks         = new ObservableCollection <CheckForPersonal>(historiesLogic.GetChecksForPersonal());
     Count          = Checks.Count;
     SeeCheck       = new RelayCommand <int>(ThisCheck);
 }
Ejemplo n.º 3
0
 public MarketPageUserViewModel()
 {
     usersLogic     = UsersLogic.GetInstance();
     historiesLogic = HistoriesLogic.GetInstance();
     Condition      = "Visible";
     FullName       = usersLogic.GetFullName();
     Checks         = new ObservableCollection <Check>(historiesLogic.GetChecks(UsersLogic.GetId()));
     SeeCheck       = new RelayCommand <int>(ThisCheck);
     ProductsLogic.GetInstance();
 }
Ejemplo n.º 4
0
 public OrderViewModel()
 {
     Condition        = "Visible";
     historiesLogic   = HistoriesLogic.GetInstance();
     productsLogic    = ProductsLogic.GetInstance();
     Products         = new ObservableCollection <Product>(productsLogic.GetListProducts());
     InCheck          = new ObservableCollection <Product>();
     FinishSum        = 0;
     ViewAboutProduct = new RelayCommand <int>(ViewProduct);
     AddToCheck       = new RelayCommand <int>(AddToBuy);
     DeleteProduct    = new RelayCommand <int>(DeleteAtCheck);
 }