Exemplo n.º 1
0
        public void Execute(object parameter)
        {
            var photoCreator = new Views.PhotoDetailView();

            _messenger.Send(new SelectedAlbumInAlbumListMessage {
                Id = _viewModel.Detail.Id
            });
            _messenger.Send(new NewPhotoMessage());
            photoCreator.ShowDialog();
        }
Exemplo n.º 2
0
        private void EditPhoto()
        {
            var photo = new Views.PhotoDetailView {
                Window = { Title = "Upraviť fotku" }
            };

            if (PhotoId == Guid.Empty)
            {
                return;
            }

            messenger.Send(new EditPhotoMessage {
                Id = PhotoId
            });
            photo.ShowDialog();
        }