public MainViewModel() { _dataGrid = new ObservableCollection <DataGrid>(); _dataGrid = dataGridService.GetCurrent(); CurrentCommand = new CurrentCommand(this); ReservationCommand = new ReservationCommand(this); HistoryCommand = new HistoryCommand(this); DeleteCommand = new DeleteCommand(this); UpdateCommand = new UpdateCommand(this); AvaibleRoomsCommand = new AvaibleRoomsCommand(this); SetButtons(true, false, false, true, true); }
/** * Constructor */ public PhotoViewerViewModel() { DeleteCommand = new DeleteCommand(this); SwitchCommand = new SwitchCommand(this); FileList = new ObservableCollection <PhotoFile>(); }