public HomeViewModel(SmugMugClient client, INavigationManager navigation, AlbumRepository albums) { _navigation = navigation; _albums = albums; _client = client; client.Key = "2FjugTuMjAMckx4VxwhunnjG4AAEwvGU"; client.Secret = "2d23eecf34defb9b7a2cda639e2e9ffc"; client.Callback = "http://vikingco.de"; Groups.Add(albumgroup); Groups.Add(_popular); Load(); AddAlbum = new DelegateCommand(() => { }); }
public ShareViewModel(ShareOperation arguments) { client = AppBootstrapper.Client; _shareOperation = arguments; Title = _shareOperation.Data.Properties.Title; if (_shareOperation.Data.Contains(StandardDataFormats.Bitmap)) { Image = new BitmapImage(); InitiliseBitmap(); } if (_shareOperation.Data.Contains(StandardDataFormats.StorageItems)) { Files = new ObservableCollection<IStorageFile>(); InitiliseStorageItems(); } Initilise(); }