public SingleGalleryViewModel(GalleryItem item) : base(null, null, null) { Items = new MvxObservableCollection <GalleryItem> { item }; SelectedItem = item; FirstItem = item; }
public SingleGalleryViewModel(IProtoService protoService, IEventAggregator aggregator, GalleryItem item) : base(protoService, aggregator) { Items = new MvxObservableCollection <GalleryItem> { item }; SelectedItem = item; FirstItem = item; }
public void OpenMessage(GalleryItem galleryItem) { var message = galleryItem as GalleryMessageItem; if (message == null) { return; } ProtoService.Send(new OpenMessageContent(message.ChatId, message.Id)); }
protected virtual void OnSelectedItemChanged(GalleryItem item) { }