コード例 #1
0
		private static Settings GetMockSettingsWithAlreadyBuiltApps()
		{
			var settings = new MockSettings();
			var storageData = new XmlData("BuiltApps");
			storageData.AddAttribute("StoragePath", storageData.Name);
			settings.SetValue(storageData.Name, storageData);
			var appsStorage = new AppsStorage(settings);
			appsStorage.AddApp(new WindowsAppInfo("Rebuildable app", Guid.NewGuid(), DateTime.Now)
			{
				SolutionFilePath = "A.sln"
			});
			appsStorage.AddApp(new WindowsAppInfo("Non-Rebuildable app ", Guid.NewGuid(), DateTime.Now));
			return settings;
		}
コード例 #2
0
        private static Settings GetMockSettingsWithAlreadyBuiltApps()
        {
            var settings    = new MockSettings();
            var storageData = new XmlData("BuiltApps");

            storageData.AddAttribute("StoragePath", storageData.Name);
            settings.SetValue(storageData.Name, storageData);
            var appsStorage = new AppsStorage(settings);

            appsStorage.AddApp(new WindowsAppInfo("Rebuildable app", Guid.NewGuid(), DateTime.Now)
            {
                SolutionFilePath = "A.sln"
            });
            appsStorage.AddApp(new WindowsAppInfo("Non-Rebuildable app ", Guid.NewGuid(), DateTime.Now));
            return(settings);
        }
コード例 #3
0
 public BuiltAppsListViewModel(Settings editorSettings)
 {
     appsStorage = new AppsStorage(editorSettings);
 }
コード例 #4
0
 public BuiltAppsListViewModel(Settings editorSettings)
 {
     appsStorage = new AppsStorage(editorSettings);
 }