public AdmBitacoraViewModel()
        {
            BLL.Bitacora bllBitacora = new BLL.Bitacora();
            FechaDesde         = DateTime.Now;
            FechaHasta         = DateTime.Now;
            _coleccionCompleta = bllBitacora.ObtenerBitacoras();

            ColeccionBitacora = new SortablePageableCollection <BE.Bitacora>(_coleccionCompleta);
            //ListaTipoEventos = new ObservableCollection<string>(ObtenerTiposEventos());
            GoToNextPageCommand     = new RelayCommand(a => ColeccionBitacora.GoToNextPage());
            GoToPreviousPageCommand = new RelayCommand(a => ColeccionBitacora.GoToPreviousPage());
        }
Ejemplo n.º 2
0
        public MainWindowViewModel()
        {
            // Create Contancts
            Contacts = new SortablePageableCollection <Contact>(CreateInitialContacts());

            // Create Commands
            GoToNextPageCommand     = new RelayCommand(a => Contacts.GoToNextPage());
            GoToPreviousPageCommand = new RelayCommand(a => Contacts.GoToPreviousPage());
            RemoveItemCommand       = new RelayCommand(item => Contacts.Remove(item as Contact));
            AddNewContactCommand    = new RelayCommand(item => AddNewContact());

            NewContact = new Contact();
        }