Ejemplo n.º 1
0
        public void CreateAlbum()
        {
            var model = new CreateAlbumViewModel();

            model.CreateCompleted += (sender, e) =>
            {
                if (e.Error == null)
                {
                    _albums.RefreshCurrentPage();
                }
            };
            IoC.Get <IWindowManager>().ShowDialog(model);
        }
Ejemplo n.º 2
0
 void CreateAlbumView_Loaded(object sender, RoutedEventArgs e)
 {
     _model = (CreateAlbumViewModel)this.DataContext;
     _model.CreateCompleted += _model_CreateCompleted;
 }