diff --git a/RMWPFUserInterface/App.config b/RMWPFUserInterface/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/RMWPFUserInterface/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/RMWPFUserInterface/App.xaml b/RMWPFUserInterface/App.xaml new file mode 100644 index 0000000..4ce220d --- /dev/null +++ b/RMWPFUserInterface/App.xaml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/RMWPFUserInterface/App.xaml.cs b/RMWPFUserInterface/App.xaml.cs new file mode 100644 index 0000000..690d4cb --- /dev/null +++ b/RMWPFUserInterface/App.xaml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using System.Windows; + +namespace RMWPFUserInterface +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/RMWPFUserInterface/BootStrapper.cs b/RMWPFUserInterface/BootStrapper.cs new file mode 100644 index 0000000..6301610 --- /dev/null +++ b/RMWPFUserInterface/BootStrapper.cs @@ -0,0 +1,54 @@ +using Caliburn.Micro; +using RMWPFUserInterface.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; + +namespace RMWPFUserInterface +{ + internal class BootStrapper : BootstrapperBase + { + private SimpleContainer _container = new SimpleContainer(); + public BootStrapper() + { + Initialize(); + } + protected override void Configure() + { + _container.Instance(_container); + + _container + .Singleton() + .Singleton(); + + GetType().Assembly.GetTypes() + .Where(type => type.IsClass) + .Where(type => type.Name.EndsWith("ViewModel")) + .ToList() + .ForEach(viewModelType => _container.RegisterPerRequest( + viewModelType, viewModelType.ToString(), viewModelType)); + } + protected override void OnStartup(object sender, StartupEventArgs e) + { + DisplayRootViewForAsync(); + } + + protected override object GetInstance(Type service, string key) + { + return _container.GetInstance(service, key); + } + + protected override IEnumerable GetAllInstances(Type service) + { + return _container.GetAllInstances(service); + } + + protected override void BuildUp(object instance) + { + _container.BuildUp(instance); + } + } +} diff --git a/RMWPFUserInterface/Properties/AssemblyInfo.cs b/RMWPFUserInterface/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..c6eb626 --- /dev/null +++ b/RMWPFUserInterface/Properties/AssemblyInfo.cs @@ -0,0 +1,55 @@ +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("RMWPFUserInterface")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RMWPFUserInterface")] +[assembly: AssemblyCopyright("Copyright © 2022")] +[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/RMWPFUserInterface/Properties/Resources.Designer.cs b/RMWPFUserInterface/Properties/Resources.Designer.cs new file mode 100644 index 0000000..733232d --- /dev/null +++ b/RMWPFUserInterface/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace RMWPFUserInterface.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("RMWPFUserInterface.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/RMWPFUserInterface/Properties/Resources.resx b/RMWPFUserInterface/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/RMWPFUserInterface/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/RMWPFUserInterface/Properties/Settings.Designer.cs b/RMWPFUserInterface/Properties/Settings.Designer.cs new file mode 100644 index 0000000..10a3c06 --- /dev/null +++ b/RMWPFUserInterface/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace RMWPFUserInterface.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/RMWPFUserInterface/Properties/Settings.settings b/RMWPFUserInterface/Properties/Settings.settings new file mode 100644 index 0000000..033d7a5 --- /dev/null +++ b/RMWPFUserInterface/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/RMWPFUserInterface/RMWPFUserInterface.csproj b/RMWPFUserInterface/RMWPFUserInterface.csproj new file mode 100644 index 0000000..7331121 --- /dev/null +++ b/RMWPFUserInterface/RMWPFUserInterface.csproj @@ -0,0 +1,121 @@ + + + + + Debug + AnyCPU + {90936557-936E-4310-90C1-45254FEEA7B1} + WinExe + RMWPFUserInterface + RetailManager + v4.7.2 + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\Caliburn.Micro.Core.4.0.210\lib\netstandard2.0\Caliburn.Micro.Core.dll + + + ..\packages\Caliburn.Micro.4.0.210\lib\net462\Caliburn.Micro.Platform.dll + + + ..\packages\Caliburn.Micro.4.0.210\lib\net462\Caliburn.Micro.Platform.Core.dll + + + ..\packages\Microsoft.Xaml.Behaviors.Wpf.1.1.19\lib\net45\Microsoft.Xaml.Behaviors.dll + + + + + + ..\packages\System.Runtime.Serialization.Primitives.4.3.0\lib\net46\System.Runtime.Serialization.Primitives.dll + True + True + + + + + + + + + 4.0 + + + + + + + + MSBuild:Compile + Designer + + + + + ShellView.xaml + + + App.xaml + Code + + + Designer + MSBuild:Compile + + + + + Code + + + True + True + Resources.resx + + + True + Settings.settings + True + + + ResXFileCodeGenerator + Resources.Designer.cs + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + + + + + + + \ No newline at end of file diff --git a/RMWPFUserInterface/ViewModels/ShellViewModel.cs b/RMWPFUserInterface/ViewModels/ShellViewModel.cs new file mode 100644 index 0000000..4a302d8 --- /dev/null +++ b/RMWPFUserInterface/ViewModels/ShellViewModel.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace RMWPFUserInterface.ViewModels +{ + public class ShellViewModel + { + } +} diff --git a/RMWPFUserInterface/Views/ShellView.xaml b/RMWPFUserInterface/Views/ShellView.xaml new file mode 100644 index 0000000..9087023 --- /dev/null +++ b/RMWPFUserInterface/Views/ShellView.xaml @@ -0,0 +1,12 @@ + + + + + diff --git a/RMWPFUserInterface/Views/ShellView.xaml.cs b/RMWPFUserInterface/Views/ShellView.xaml.cs new file mode 100644 index 0000000..59fc3d5 --- /dev/null +++ b/RMWPFUserInterface/Views/ShellView.xaml.cs @@ -0,0 +1,27 @@ +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 RMWPFUserInterface.Views +{ + /// + /// Interaction logic for ShellView.xaml + /// + public partial class ShellView : Window + { + public ShellView() + { + InitializeComponent(); + } + } +} diff --git a/RMWPFUserInterface/packages.config b/RMWPFUserInterface/packages.config new file mode 100644 index 0000000..ce49f05 --- /dev/null +++ b/RMWPFUserInterface/packages.config @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/Retail_manager.sln b/Retail_manager.sln index 0b29cde..6706818 100644 --- a/Retail_manager.sln +++ b/Retail_manager.sln @@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RMDataManager", "RMDataMana EndProject Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "RMData", "RMData\RMData.sqlproj", "{0098FB45-9267-42D0-81B1-9948E2BAB28F}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RMWPFUserInterface", "RMWPFUserInterface\RMWPFUserInterface.csproj", "{90936557-936E-4310-90C1-45254FEEA7B1}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -23,6 +25,10 @@ Global {0098FB45-9267-42D0-81B1-9948E2BAB28F}.Release|Any CPU.ActiveCfg = Release|Any CPU {0098FB45-9267-42D0-81B1-9948E2BAB28F}.Release|Any CPU.Build.0 = Release|Any CPU {0098FB45-9267-42D0-81B1-9948E2BAB28F}.Release|Any CPU.Deploy.0 = Release|Any CPU + {90936557-936E-4310-90C1-45254FEEA7B1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {90936557-936E-4310-90C1-45254FEEA7B1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {90936557-936E-4310-90C1-45254FEEA7B1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {90936557-936E-4310-90C1-45254FEEA7B1}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE