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

            if (message == null)
            {
                return;
            }

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