コード例 #1
0
ファイル: HomeViewModel.cs プロジェクト: willhughes/Smuggle
        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(() =>
                {

                });
        }
コード例 #2
0
ファイル: ShareViewModel.cs プロジェクト: willhughes/Smuggle
        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();
        }