private void WaitingOrder() { Task.Run(() => { while (orderViewModel.Condition == "Visible") { ; } Checks = new ObservableCollection <Check>(historiesLogic.GetChecks(UsersLogic.GetId())); }); }
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(); }