public ShellViewModel() { var blobstoreClientCreator = new BlobstoreClientCreator(); this.Tabs = new ObservableCollection<TabItem> { new TabItem("Default", new DefaultBlobstoreViewModel(blobstoreClientCreator)), }; this.SettingsViewModel = new CreatePasswordHashViewModel(); }
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(); }