Example #1
0
 public SingleGalleryViewModel(GalleryItem item)
     : base(null, null, null)
 {
     Items = new MvxObservableCollection <GalleryItem> {
         item
     };
     SelectedItem = item;
     FirstItem    = item;
 }
Example #2
0
 public SingleGalleryViewModel(IProtoService protoService, IEventAggregator aggregator, GalleryItem item)
     : base(protoService, aggregator)
 {
     Items = new MvxObservableCollection <GalleryItem> {
         item
     };
     SelectedItem = item;
     FirstItem    = item;
 }
Example #3
0
        public void OpenMessage(GalleryItem galleryItem)
        {
            var message = galleryItem as GalleryMessageItem;

            if (message == null)
            {
                return;
            }

            ProtoService.Send(new OpenMessageContent(message.ChatId, message.Id));
        }
Example #4
0
 protected virtual void OnSelectedItemChanged(GalleryItem item)
 {
 }