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

            if (message == null)
            {
                return;
            }

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