public IndexesModel() { ModelUrl = "/indexes"; GroupedIndexes = new ObservableCollection<IndexListItem>(); ItemSelection = new ItemSelection<IndexItem>(); }
public IndexesModel() { ModelUrl = "/indexes"; ApplicationModel.Current.Server.Value.RawUrl = "databases/" + ApplicationModel.Current.Server.Value.SelectedDatabase.Value.Name + "/indexes"; GroupedIndexes = new ObservableCollection<IndexListItem>(); ItemSelection = new ItemSelection<IndexItem>(); }
public DocumentsModel(DocumentsVirtualCollectionSourceBase collectionSource) { Documents = new VirtualCollection<ViewableDocument>(collectionSource, 30, 30, new KeysComparer<ViewableDocument>(v => v.Id ?? v.DisplayId, v => v.LastModified, v => v.MetadataOnly)); Documents.PropertyChanged += HandleDocumentsPropertyChanged; collectionSource.CollectionChanged += delegate { HandleCollectionRefreshed(); }; updateColumnsSamplingInvoker = new SamplingInvoker(TimeSpan.FromSeconds(1)); Documents.ItemsRealized += (sender, e) => HandleItemsRealized(e.StartingIndex, e.Count); ItemSelection = new ItemSelection<VirtualItem<ViewableDocument>>(); DocumentsHaveId = true; Context = "Default"; }
public DocumentsModel(DocumentsVirtualCollectionSourceBase collectionSource) { Documents = new VirtualCollection<ViewableDocument>(collectionSource, 30, 30, new KeysComparer<ViewableDocument>(v => v.Id ?? v.DisplayId, v => v.LastModified, v => v.MetadataOnly)); Documents.PropertyChanged += HandleDocumentsPropertyChanged; Observable.FromEventPattern<ItemsRealizedEventArgs>(h => Documents.ItemsRealized += h, h => Documents.ItemsRealized -= h) .SampleResponsive(TimeSpan.FromSeconds(1)) .ObserveOnDispatcher() .Subscribe(e => HandleItemsRealized(e.Sender, e.EventArgs)); ItemSelection = new ItemSelection<VirtualItem<ViewableDocument>>(); Context = "Default"; }
public ConflictsModel() { ConflictDocuments = new VirtualCollection<ViewableDocument>(new ConflictDocumentsCollectionSource(), 30, 30); ItemSelection = new ItemSelection<VirtualItem<ViewableDocument>>(); }