From 2d21b79d52577646daf9848c9d9044ad00138dad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Fi=C5=A1era?= Date: Sat, 2 Feb 2019 11:32:55 +0100 Subject: [PATCH] #78 - Delete project TestWpf. --- Neptuo.sln | 5 - test/TestWpf/App.config | 6 - test/TestWpf/App.xaml | 8 -- test/TestWpf/App.xaml.cs | 17 --- test/TestWpf/MainWindow.xaml | 8 -- test/TestWpf/MainWindow.xaml.cs | 28 ---- .../FieldDefinitionViewModel.cs | 34 ----- .../ModelDefinitionViewModel.cs | 48 ------- .../PresentationModels/ModelWindow.xaml | 12 -- .../PresentationModels/ModelWindow.xaml.cs | 29 ---- test/TestWpf/PresentationModels/Person.cs | 14 -- test/TestWpf/Properties/AssemblyInfo.cs | 55 -------- test/TestWpf/Properties/Resources.Designer.cs | 71 ---------- test/TestWpf/Properties/Resources.resx | 117 ---------------- test/TestWpf/Properties/Settings.Designer.cs | 30 ---- test/TestWpf/Properties/Settings.settings | 7 - test/TestWpf/TestWpf.csproj | 132 ------------------ 17 files changed, 621 deletions(-) delete mode 100644 test/TestWpf/App.config delete mode 100644 test/TestWpf/App.xaml delete mode 100644 test/TestWpf/App.xaml.cs delete mode 100644 test/TestWpf/MainWindow.xaml delete mode 100644 test/TestWpf/MainWindow.xaml.cs delete mode 100644 test/TestWpf/PresentationModels/FieldDefinitionViewModel.cs delete mode 100644 test/TestWpf/PresentationModels/ModelDefinitionViewModel.cs delete mode 100644 test/TestWpf/PresentationModels/ModelWindow.xaml delete mode 100644 test/TestWpf/PresentationModels/ModelWindow.xaml.cs delete mode 100644 test/TestWpf/PresentationModels/Person.cs delete mode 100644 test/TestWpf/Properties/AssemblyInfo.cs delete mode 100644 test/TestWpf/Properties/Resources.Designer.cs delete mode 100644 test/TestWpf/Properties/Resources.resx delete mode 100644 test/TestWpf/Properties/Settings.Designer.cs delete mode 100644 test/TestWpf/Properties/Settings.settings delete mode 100644 test/TestWpf/TestWpf.csproj diff --git a/Neptuo.sln b/Neptuo.sln index 5a368a18..2ab5fa3d 100644 --- a/Neptuo.sln +++ b/Neptuo.sln @@ -28,8 +28,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "PresentationModels", "Prese EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Windows", "Windows", "{A7CE8ABF-9770-49F4-8969-8AB6957A87E6}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestWpf", "test\TestWpf\TestWpf.csproj", "{834CEB47-4BCD-4895-80FA-44960472C64B}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Neptuo.Activators.Simple", "src\Neptuo.Activators.Simple\Neptuo.Activators.Simple.csproj", "{891F1607-D6F3-4D9F-8FF1-ABC9DA73B563}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Neptuo.Activators.Unity", "src\Neptuo.Activators.Unity\Neptuo.Activators.Unity.csproj", "{A9D02667-9762-4C91-A403-41DE7B8A4EFE}" @@ -179,9 +177,6 @@ Global {C4909618-FA01-4E6F-B34B-9F1D24239C87}.Debug|Any CPU.Build.0 = Debug|Any CPU {C4909618-FA01-4E6F-B34B-9F1D24239C87}.Release|Any CPU.ActiveCfg = Release|Any CPU {C4909618-FA01-4E6F-B34B-9F1D24239C87}.Release|Any CPU.Build.0 = Release|Any CPU - {834CEB47-4BCD-4895-80FA-44960472C64B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {834CEB47-4BCD-4895-80FA-44960472C64B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {834CEB47-4BCD-4895-80FA-44960472C64B}.Release|Any CPU.ActiveCfg = Release|Any CPU {891F1607-D6F3-4D9F-8FF1-ABC9DA73B563}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {891F1607-D6F3-4D9F-8FF1-ABC9DA73B563}.Debug|Any CPU.Build.0 = Debug|Any CPU {891F1607-D6F3-4D9F-8FF1-ABC9DA73B563}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/test/TestWpf/App.config b/test/TestWpf/App.config deleted file mode 100644 index fad249e4..00000000 --- a/test/TestWpf/App.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/test/TestWpf/App.xaml b/test/TestWpf/App.xaml deleted file mode 100644 index 5194119c..00000000 --- a/test/TestWpf/App.xaml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - diff --git a/test/TestWpf/App.xaml.cs b/test/TestWpf/App.xaml.cs deleted file mode 100644 index 18dbb419..00000000 --- a/test/TestWpf/App.xaml.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Configuration; -using System.Data; -using System.Linq; -using System.Threading.Tasks; -using System.Windows; - -namespace TestWpf -{ - /// - /// Interaction logic for App.xaml - /// - public partial class App : Application - { - } -} diff --git a/test/TestWpf/MainWindow.xaml b/test/TestWpf/MainWindow.xaml deleted file mode 100644 index e75f43b6..00000000 --- a/test/TestWpf/MainWindow.xaml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - diff --git a/test/TestWpf/MainWindow.xaml.cs b/test/TestWpf/MainWindow.xaml.cs deleted file mode 100644 index bb561beb..00000000 --- a/test/TestWpf/MainWindow.xaml.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; - -namespace TestWpf -{ - /// - /// Interaction logic for MainWindow.xaml - /// - public partial class MainWindow : Window - { - public MainWindow() - { - InitializeComponent(); - } - } -} diff --git a/test/TestWpf/PresentationModels/FieldDefinitionViewModel.cs b/test/TestWpf/PresentationModels/FieldDefinitionViewModel.cs deleted file mode 100644 index 3bcd16fb..00000000 --- a/test/TestWpf/PresentationModels/FieldDefinitionViewModel.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Neptuo; -using Neptuo.Observables; -using Neptuo.Observables.Collections; -using Neptuo.PresentationModels; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace TestWpf.PresentationModels -{ - public class FieldDefinitionViewModel : ObservableObject//, IFieldView - { - public IFieldDefinition FieldDefinition { get; private set; } - public object FieldValue { get; set; } - - public FieldDefinitionViewModel(IFieldDefinition fieldDefinition) - { - Ensure.NotNull(fieldDefinition, "fieldDefinition"); - FieldDefinition = fieldDefinition; - } - - public void SetValue(object value) - { - FieldValue = value; - } - - public object GetValue() - { - return FieldValue; - } - } -} diff --git a/test/TestWpf/PresentationModels/ModelDefinitionViewModel.cs b/test/TestWpf/PresentationModels/ModelDefinitionViewModel.cs deleted file mode 100644 index 0b9cc906..00000000 --- a/test/TestWpf/PresentationModels/ModelDefinitionViewModel.cs +++ /dev/null @@ -1,48 +0,0 @@ -using Neptuo; -using Neptuo.Observables; -using Neptuo.Observables.Collections; -using Neptuo.PresentationModels; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace TestWpf.PresentationModels -{ - public class ModelDefinitionViewModel : ObservableObject//, IModelView - { - public IModelDefinition ModelDefinition { get; private set; } - public ObservableCollection Fields { get; private set; } - - public ModelDefinitionViewModel(IModelDefinition modelDefinition) - { - Ensure.NotNull(modelDefinition, "modelDefinition"); - ModelDefinition = modelDefinition; - Fields = new ObservableCollection(modelDefinition.Fields.Select(f => new FieldDefinitionViewModel(f))); - } - - public void SetValue(string identifier, object value) - { - foreach (FieldDefinitionViewModel field in Fields) - { - if(field.FieldDefinition.Identifier == identifier) - { - field.SetValue(value); - break; - } - } - } - - public object GetValue(string identifier) - { - foreach (FieldDefinitionViewModel field in Fields) - { - if (field.FieldDefinition.Identifier == identifier) - return field.GetValue(); - } - - throw new InvalidOperationException(String.Format("Model definition '{0}' doesn't contain field with identifier '{1}'.", ModelDefinition.Identifier, identifier)); - } - } -} diff --git a/test/TestWpf/PresentationModels/ModelWindow.xaml b/test/TestWpf/PresentationModels/ModelWindow.xaml deleted file mode 100644 index 96044cde..00000000 --- a/test/TestWpf/PresentationModels/ModelWindow.xaml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - diff --git a/test/TestWpf/PresentationModels/ModelWindow.xaml.cs b/test/TestWpf/PresentationModels/ModelWindow.xaml.cs deleted file mode 100644 index b2490606..00000000 --- a/test/TestWpf/PresentationModels/ModelWindow.xaml.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Neptuo.PresentationModels.TypeModels; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Shapes; - -namespace TestWpf.PresentationModels -{ - /// - /// Interaction logic for ModelWindow.xaml - /// - public partial class ModelWindow : Window - { - public ModelWindow() - { - InitializeComponent(); - DataContext = new ModelDefinitionViewModel(new ReflectionModelDefinitionBuilder(typeof(Person), new AttributeMetadataReaderCollection()).Create()); - } - } -} diff --git a/test/TestWpf/PresentationModels/Person.cs b/test/TestWpf/PresentationModels/Person.cs deleted file mode 100644 index e86fddf9..00000000 --- a/test/TestWpf/PresentationModels/Person.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace TestWpf.PresentationModels -{ - public class Person - { - public string FirstName { get; set; } - public string LastName { get; set; } - } -} diff --git a/test/TestWpf/Properties/AssemblyInfo.cs b/test/TestWpf/Properties/AssemblyInfo.cs deleted file mode 100644 index d4e31a38..00000000 --- a/test/TestWpf/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,55 +0,0 @@ -using System.Reflection; -using System.Resources; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Windows; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("TestWpf")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("TestWpf")] -[assembly: AssemblyCopyright("Copyright © 2014")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -//In order to begin building localizable applications, set -//CultureYouAreCodingWith in your .csproj file -//inside a . For example, if you are using US english -//in your source files, set the to en-US. Then uncomment -//the NeutralResourceLanguage attribute below. Update the "en-US" in -//the line below to match the UICulture setting in the project file. - -//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] - - -[assembly: ThemeInfo( - ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located - //(used if a resource is not found in the page, - // or application resource dictionaries) - ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located - //(used if a resource is not found in the page, - // app, or any theme specific resource dictionaries) -)] - - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/test/TestWpf/Properties/Resources.Designer.cs b/test/TestWpf/Properties/Resources.Designer.cs deleted file mode 100644 index 405d2318..00000000 --- a/test/TestWpf/Properties/Resources.Designer.cs +++ /dev/null @@ -1,71 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.34014 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace TestWpf.Properties -{ - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources - { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() - { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager - { - get - { - if ((resourceMan == null)) - { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TestWpf.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture - { - get - { - return resourceCulture; - } - set - { - resourceCulture = value; - } - } - } -} diff --git a/test/TestWpf/Properties/Resources.resx b/test/TestWpf/Properties/Resources.resx deleted file mode 100644 index ffecec85..00000000 --- a/test/TestWpf/Properties/Resources.resx +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/test/TestWpf/Properties/Settings.Designer.cs b/test/TestWpf/Properties/Settings.Designer.cs deleted file mode 100644 index 8fb095a6..00000000 --- a/test/TestWpf/Properties/Settings.Designer.cs +++ /dev/null @@ -1,30 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.34014 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace TestWpf.Properties -{ - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] - internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase - { - - private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); - - public static Settings Default - { - get - { - return defaultInstance; - } - } - } -} diff --git a/test/TestWpf/Properties/Settings.settings b/test/TestWpf/Properties/Settings.settings deleted file mode 100644 index 8f2fd95d..00000000 --- a/test/TestWpf/Properties/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/test/TestWpf/TestWpf.csproj b/test/TestWpf/TestWpf.csproj deleted file mode 100644 index 279825df..00000000 --- a/test/TestWpf/TestWpf.csproj +++ /dev/null @@ -1,132 +0,0 @@ - - - - - Debug - AnyCPU - {834CEB47-4BCD-4895-80FA-44960472C64B} - WinExe - Properties - TestWpf - TestWpf - v4.5 - 512 - {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - 4 - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - 4.0 - - - - - - - - MSBuild:Compile - Designer - - - MSBuild:Compile - Designer - - - App.xaml - Code - - - MainWindow.xaml - Code - - - Designer - MSBuild:Compile - - - - - - - ModelWindow.xaml - - - - Code - - - True - True - Resources.resx - - - True - Settings.settings - True - - - ResXFileCodeGenerator - Resources.Designer.cs - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - - - - - - - {eda4c50e-2873-4237-a84b-f73a15c27cd6} - Neptuo.Observables - - - {c4909618-fa01-4e6f-b34b-9f1d24239c87} - Neptuo.PresentationModels.TypeModels.DataAnnotations - - - {671bf5ef-9e1c-4ef9-ae7c-57c9f960650b} - Neptuo.PresentationModels - - - {2392ed97-e671-4871-81a4-c85975f33794} - Neptuo - - - - - \ No newline at end of file