コード例 #1
0
ファイル: ShellViewModel.cs プロジェクト: froko/bbv.Blobstore
        public ShellViewModel()
        {
            var blobstoreClientCreator = new BlobstoreClientCreator();
            this.Tabs = new ObservableCollection<TabItem>
                            {
                                new TabItem("Default", new DefaultBlobstoreViewModel(blobstoreClientCreator)),
                            };

            this.SettingsViewModel = new CreatePasswordHashViewModel();
        }
コード例 #2
0
        public DefaultBlobstoreViewModel(BlobstoreClientCreator creator)
        {
            this.creator = creator;

            this.BaseUri = ConfigurationManager.AppSettings["BaseUri"];
            this.UserName = ConfigurationManager.AppSettings["UserName"];
            this.Password = ConfigurationManager.AppSettings["Password"];
            this.FileList = new ObservableCollection<BlobstoreFile>();

            this.NewGuid();
        }