diff --git a/AuroraRecordGenerator.sln b/AuroraRecordGenerator.sln new file mode 100644 index 0000000..d7a4ef6 --- /dev/null +++ b/AuroraRecordGenerator.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuroraRecordGenerator", "AuroraRecordGenerator\AuroraRecordGenerator.csproj", "{2E1295C2-7BD9-454E-B13E-8A22448DD5F6}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2E1295C2-7BD9-454E-B13E-8A22448DD5F6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2E1295C2-7BD9-454E-B13E-8A22448DD5F6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2E1295C2-7BD9-454E-B13E-8A22448DD5F6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2E1295C2-7BD9-454E-B13E-8A22448DD5F6}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/AuroraRecordGenerator/App.config b/AuroraRecordGenerator/App.config new file mode 100644 index 0000000..88fa402 --- /dev/null +++ b/AuroraRecordGenerator/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AuroraRecordGenerator/App.xaml b/AuroraRecordGenerator/App.xaml new file mode 100644 index 0000000..ed174d1 --- /dev/null +++ b/AuroraRecordGenerator/App.xaml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + diff --git a/AuroraRecordGenerator/App.xaml.cs b/AuroraRecordGenerator/App.xaml.cs new file mode 100644 index 0000000..4f57d35 --- /dev/null +++ b/AuroraRecordGenerator/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 AuroraRecordGenerator +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/AuroraRecordGenerator/AuroraRecordGenerator.csproj b/AuroraRecordGenerator/AuroraRecordGenerator.csproj new file mode 100644 index 0000000..86d24a6 --- /dev/null +++ b/AuroraRecordGenerator/AuroraRecordGenerator.csproj @@ -0,0 +1,135 @@ + + + + + Debug + AnyCPU + {2E1295C2-7BD9-454E-B13E-8A22448DD5F6} + WinExe + Properties + AuroraRecordGenerator + AuroraRecordGenerator + v4.5.2 + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\Humanizer.Core.2.1.0\lib\netstandard1.0\Humanizer.dll + True + + + ..\packages\MahApps.Metro.1.3.0\lib\net45\MahApps.Metro.dll + True + + + ..\packages\protobuf-net.2.1.0\lib\net451\protobuf-net.dll + True + + + + + ..\packages\MahApps.Metro.1.3.0\lib\net45\System.Windows.Interactivity.dll + True + + + + + + + + + 4.0 + + + + + + + + MSBuild:Compile + Designer + + + GeneratedResultWindow.xaml + + + + + + + + Designer + MSBuild:Compile + + + MSBuild:Compile + Designer + + + App.xaml + Code + + + RecordEditor.xaml + Code + + + + + 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/AuroraRecordGenerator/GeneratedResultWindow.xaml b/AuroraRecordGenerator/GeneratedResultWindow.xaml new file mode 100644 index 0000000..571d784 --- /dev/null +++ b/AuroraRecordGenerator/GeneratedResultWindow.xaml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + diff --git a/AuroraRecordGenerator/GeneratedResultWindow.xaml.cs b/AuroraRecordGenerator/GeneratedResultWindow.xaml.cs new file mode 100644 index 0000000..6581d4a --- /dev/null +++ b/AuroraRecordGenerator/GeneratedResultWindow.xaml.cs @@ -0,0 +1,18 @@ +namespace AuroraRecordGenerator +{ + public partial class GeneratedResultWindow + { + public GeneratedResultWindow() + { + InitializeComponent(); + } + + public GeneratedResultWindow(Record record) : this() + { + var formatter = new RecordFormatter(record); + EmploymentBox.Text = formatter.EmploymentRecords; + MedicalBox.Text = formatter.MedicalRecords; + SecurityBox.Text = formatter.SecurityRecords; + } + } +} diff --git a/AuroraRecordGenerator/Properties/AssemblyInfo.cs b/AuroraRecordGenerator/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..217f1fa --- /dev/null +++ b/AuroraRecordGenerator/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("AuroraRecordGenerator")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("AuroraRecordGenerator")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[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/AuroraRecordGenerator/Properties/Resources.Designer.cs b/AuroraRecordGenerator/Properties/Resources.Designer.cs new file mode 100644 index 0000000..b385641 --- /dev/null +++ b/AuroraRecordGenerator/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 AuroraRecordGenerator.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("AuroraRecordGenerator.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/AuroraRecordGenerator/Properties/Resources.resx b/AuroraRecordGenerator/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/AuroraRecordGenerator/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/AuroraRecordGenerator/Properties/Settings.Designer.cs b/AuroraRecordGenerator/Properties/Settings.Designer.cs new file mode 100644 index 0000000..5ea6d6e --- /dev/null +++ b/AuroraRecordGenerator/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 AuroraRecordGenerator.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/AuroraRecordGenerator/Properties/Settings.settings b/AuroraRecordGenerator/Properties/Settings.settings new file mode 100644 index 0000000..033d7a5 --- /dev/null +++ b/AuroraRecordGenerator/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/AuroraRecordGenerator/Record.cs b/AuroraRecordGenerator/Record.cs new file mode 100644 index 0000000..1d94c70 --- /dev/null +++ b/AuroraRecordGenerator/Record.cs @@ -0,0 +1,117 @@ +using System; +using ProtoBuf; + +namespace AuroraRecordGenerator +{ + [ProtoContract] + public class Record + { + // Defaults defined here will automatically populate the form on program load + [ProtoMember(1)] + public string FirstName { get; set; } = string.Empty; + + [ProtoMember(2)] + public string MiddleName { get; set; } = string.Empty; + + [ProtoMember(3)] + public string LastName { get; set; } = string.Empty; + + [ProtoMember(4)] + public string NameSuffix { get; set; } = string.Empty; + + [ProtoMember(5, IsRequired = true)] + public SpeciesType Species { get; set; } = SpeciesType.Human; + + [ProtoMember(6, IsRequired = true)] + public GenderType Gender { get; set; } + + [ProtoMember(7)] + public DateTime BirthDate { get; set; } = DateTime.Parse("1/1/2458"); + + [ProtoMember(8)] + public double? CharHeight { get; set; } = 170; + + [ProtoMember(9)] + public double? Weight { get; set; } = 70; + + [ProtoMember(10)] + public string SkinColor { get; set; } = string.Empty; + + [ProtoMember(11)] + public string EyeColor { get; set; } = string.Empty; + + [ProtoMember(12)] + public string DistinguishingFeatures { get; set; } = string.Empty; + + [ProtoMember(13)] + public string HairColor { get; set; } = string.Empty; + + [ProtoMember(14)] + public string EmployedAs { get; set; } = string.Empty; + + [ProtoMember(15)] + public string Citizenship { get; set; } = string.Empty; + + // 16 & 17 used to be PictureUrl and PictureCredit, now unused. + + [ProtoMember(18)] + public string Clearance { get; set; } = string.Empty; + + [ProtoMember(19)] + public string MedicalPublicRecord { get; set; } = string.Empty; + + [ProtoMember(20)] + public string MedicalHistory { get; set; } = string.Empty; + + [ProtoMember(21)] + public string MedicalNotes { get; set; } = string.Empty; + + [ProtoMember(22)] + public string MedicalPsychHistory { get; set; } = string.Empty; + + [ProtoMember(23)] + public string MedicalPsychNotes { get; set; } = string.Empty; + + [ProtoMember(24)] + public bool NoBorg { get; set; } = false; + + [ProtoMember(25)] + public bool NoClone { get; set; } = false; + + [ProtoMember(26)] + public bool NoRevive { get; set; } = false; + + [ProtoMember(27)] + public bool NoProsthetic { get; set; } = false; + + [ProtoMember(28)] + public string MedicalPrescriptions { get; set; } = string.Empty; + + [ProtoMember(29)] + public string SecurityPublicRecord { get; set; } = string.Empty; + + [ProtoMember(30)] + public string SecurityRecords { get; set; } = string.Empty; + + [ProtoMember(31)] + public string SecurityNotes { get; set; } = string.Empty; + + [ProtoMember(32)] + public string EmploymentPublicRecord { get; set; } = string.Empty; + + [ProtoMember(33)] + public string EmploymentExperience { get; set; } = string.Empty; + + [ProtoMember(34)] + public string EmploymentPreNtEmployment { get; set; } = string.Empty; + + [ProtoMember(35)] + public string EmploymentFormalEducation { get; set; } = string.Empty; + + [ProtoMember(36)] + public string EmploymentNtEmploymentHistory { get; set; } = string.Empty; + + [ProtoMember(37)] + public string EmploymentSkills { get; set; } = string.Empty; + } +} \ No newline at end of file diff --git a/AuroraRecordGenerator/RecordEditor.xaml b/AuroraRecordGenerator/RecordEditor.xaml new file mode 100644 index 0000000..b57c511 --- /dev/null +++ b/AuroraRecordGenerator/RecordEditor.xaml @@ -0,0 +1,385 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +