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);
        }
Exemplo n.º 2
0
 /**
  * Constructor
  */
 public PhotoViewerViewModel()
 {
     DeleteCommand = new DeleteCommand(this);
     SwitchCommand = new SwitchCommand(this);
     FileList      = new ObservableCollection <PhotoFile>();
 }