public EditViewModel() { _locationCollection = new LocationCollection(); _categories = CategoriesCollection.Instance; _udstillingsGenstande = UdsCollection.Instance; Loadcollections(); SaveCommand = new RelayCommand(toSaveCommand); DeleteCommand = new RelayCommand(toDeleteCommand); }
public MainViewModel() { _etage2Locations = new List <Location>(); _etage3Locations = new List <Location>(); _allLocations = new List <Location>(); _buttons = new ObservableCollection <Location>(); _allUds = UdsCollection.Instance; _selectedUdsByLocation = new ObservableCollection <UDS>(); PlayCommand = new RelayCommand(ToPlayCommand); PauseCommand = new RelayCommand(ToPauseCommand); MuteCommand = new RelayCommand(ToMuteCommand); //_buttons.Add(new DynamicButton(115, 50,50,30)); //_buttons.Add(new DynamicButton(33, 123, 36, 48)); LoadResourcesAsync(); Map = _map2; ChangeToMap2 = new RelayCommand(toChangeMap2); ChangeToMap3 = new RelayCommand(toChangeMap3); SetLocation = new RelayCommandWithParamitter(toSetLocation, true); }
public void Arrange() { collection = UdsCollection.Instance; }