From 51ec5564a0ede45b17e61b7f808cbeca0abaeaa3 Mon Sep 17 00:00:00 2001 From: ​ Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: clone customer --- .../.vs/CloneCustomer/DesignTimeBuild/.dtbcache.v2 | Bin 0 -> 74764 bytes .../02abf4f2-4a8f-4409-a4d5-436950dc5036.vsidx | Bin 0 -> 31507 bytes .../c9b8d56b-df6c-4e83-a764-72853e0721f9.vsidx | Bin 0 -> 31820 bytes clone_customer/.vs/CloneCustomer/v17/.futdcache.v2 | Bin 0 -> 296 bytes clone_customer/.vs/CloneCustomer/v17/.suo | Bin 0 -> 34304 bytes .../clonecustomer.metadata.v7.bin | Bin 0 -> 177906 bytes .../clonecustomer.projects.v7.bin | Bin 0 -> 294823 bytes clone_customer/CloneCustomer.sln | 25 ++++ clone_customer/CloneCustomer/CloneCustomer.csproj | 9 ++ .../CloneCustomer/CloneCustomer.csproj.user | 8 ++ clone_customer/CloneCustomer/Customer.cs | 61 ++++++++++ clone_customer/CloneCustomer/CustomerList.cs | 16 +++ clone_customer/CloneCustomer/Program.cs | 23 ++++ clone_customer/CloneCustomer/Validator.cs | 81 +++++++++++++ .../Debug/netcoreapp3.1/CloneCustomer.deps.json | 23 ++++ .../bin/Debug/netcoreapp3.1/CloneCustomer.dll | Bin 0 -> 11264 bytes .../bin/Debug/netcoreapp3.1/CloneCustomer.exe | Bin 0 -> 158208 bytes .../bin/Debug/netcoreapp3.1/CloneCustomer.pdb | Bin 0 -> 13596 bytes .../CloneCustomer.runtimeconfig.dev.json | 8 ++ .../netcoreapp3.1/CloneCustomer.runtimeconfig.json | 9 ++ clone_customer/CloneCustomer/frmMain.Designer.cs | 129 +++++++++++++++++++++ clone_customer/CloneCustomer/frmMain.cs | 54 +++++++++ clone_customer/CloneCustomer/frmMain.resx | 120 +++++++++++++++++++ .../obj/CloneCustomer.csproj.nuget.dgspec.json | 66 +++++++++++ .../obj/CloneCustomer.csproj.nuget.g.props | 15 +++ .../obj/CloneCustomer.csproj.nuget.g.targets | 2 + .../.NETCoreApp,Version=v3.1.AssemblyAttributes.cs | 4 + .../netcoreapp3.1/CloneCustomer.AssemblyInfo.cs | 23 ++++ .../CloneCustomer.AssemblyInfoInputs.cache | 1 + ...tomer.GeneratedMSBuildEditorConfig.editorconfig | 11 ++ .../Debug/netcoreapp3.1/CloneCustomer.assets.cache | Bin 0 -> 151 bytes .../CloneCustomer.csproj.BuildWithSkipAnalyzers | 0 .../CloneCustomer.csproj.CoreCompileInputs.cache | 1 + .../CloneCustomer.csproj.FileListAbsolute.txt | 30 +++++ .../CloneCustomer.csproj.GenerateResource.cache | Bin 0 -> 58 bytes .../netcoreapp3.1/CloneCustomer.designer.deps.json | 11 ++ .../CloneCustomer.designer.runtimeconfig.json | 16 +++ .../obj/Debug/netcoreapp3.1/CloneCustomer.dll | Bin 0 -> 11264 bytes .../netcoreapp3.1/CloneCustomer.frmMain.resources | Bin 0 -> 180 bytes .../CloneCustomer.genruntimeconfig.cache | 1 + .../obj/Debug/netcoreapp3.1/CloneCustomer.pdb | Bin 0 -> 13596 bytes .../obj/Debug/netcoreapp3.1/apphost.exe | Bin 0 -> 158208 bytes .../CloneCustomer/obj/project.assets.json | 71 ++++++++++++ .../CloneCustomer/obj/project.nuget.cache | 8 ++ 44 files changed, 826 insertions(+) create mode 100644 clone_customer/.vs/CloneCustomer/DesignTimeBuild/.dtbcache.v2 create mode 100644 clone_customer/.vs/CloneCustomer/FileContentIndex/02abf4f2-4a8f-4409-a4d5-436950dc5036.vsidx create mode 100644 clone_customer/.vs/CloneCustomer/FileContentIndex/c9b8d56b-df6c-4e83-a764-72853e0721f9.vsidx create mode 100644 clone_customer/.vs/CloneCustomer/v17/.futdcache.v2 create mode 100644 clone_customer/.vs/CloneCustomer/v17/.suo create mode 100644 clone_customer/.vs/ProjectEvaluation/clonecustomer.metadata.v7.bin create mode 100644 clone_customer/.vs/ProjectEvaluation/clonecustomer.projects.v7.bin create mode 100644 clone_customer/CloneCustomer.sln create mode 100644 clone_customer/CloneCustomer/CloneCustomer.csproj create mode 100644 clone_customer/CloneCustomer/CloneCustomer.csproj.user create mode 100644 clone_customer/CloneCustomer/Customer.cs create mode 100644 clone_customer/CloneCustomer/CustomerList.cs create mode 100644 clone_customer/CloneCustomer/Program.cs create mode 100644 clone_customer/CloneCustomer/Validator.cs create mode 100644 clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.deps.json create mode 100644 clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.dll create mode 100644 clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.exe create mode 100644 clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.pdb create mode 100644 clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.runtimeconfig.dev.json create mode 100644 clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.runtimeconfig.json create mode 100644 clone_customer/CloneCustomer/frmMain.Designer.cs create mode 100644 clone_customer/CloneCustomer/frmMain.cs create mode 100644 clone_customer/CloneCustomer/frmMain.resx create mode 100644 clone_customer/CloneCustomer/obj/CloneCustomer.csproj.nuget.dgspec.json create mode 100644 clone_customer/CloneCustomer/obj/CloneCustomer.csproj.nuget.g.props create mode 100644 clone_customer/CloneCustomer/obj/CloneCustomer.csproj.nuget.g.targets create mode 100644 clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs create mode 100644 clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.AssemblyInfo.cs create mode 100644 clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.AssemblyInfoInputs.cache create mode 100644 clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.GeneratedMSBuildEditorConfig.editorconfig create mode 100644 clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.assets.cache create mode 100644 clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.csproj.BuildWithSkipAnalyzers create mode 100644 clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.csproj.CoreCompileInputs.cache create mode 100644 clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.csproj.FileListAbsolute.txt create mode 100644 clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.csproj.GenerateResource.cache create mode 100644 clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.designer.deps.json create mode 100644 clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.designer.runtimeconfig.json create mode 100644 clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.dll create mode 100644 clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.frmMain.resources create mode 100644 clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.genruntimeconfig.cache create mode 100644 clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.pdb create mode 100644 clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/apphost.exe create mode 100644 clone_customer/CloneCustomer/obj/project.assets.json create mode 100644 clone_customer/CloneCustomer/obj/project.nuget.cache diff --git a/clone_customer/.vs/CloneCustomer/DesignTimeBuild/.dtbcache.v2 b/clone_customer/.vs/CloneCustomer/DesignTimeBuild/.dtbcache.v2 new file mode 100644 index 0000000..1be9340 Binary files /dev/null and b/clone_customer/.vs/CloneCustomer/DesignTimeBuild/.dtbcache.v2 differ diff --git a/clone_customer/.vs/CloneCustomer/FileContentIndex/02abf4f2-4a8f-4409-a4d5-436950dc5036.vsidx b/clone_customer/.vs/CloneCustomer/FileContentIndex/02abf4f2-4a8f-4409-a4d5-436950dc5036.vsidx new file mode 100644 index 0000000..7034928 Binary files /dev/null and b/clone_customer/.vs/CloneCustomer/FileContentIndex/02abf4f2-4a8f-4409-a4d5-436950dc5036.vsidx differ diff --git a/clone_customer/.vs/CloneCustomer/FileContentIndex/c9b8d56b-df6c-4e83-a764-72853e0721f9.vsidx b/clone_customer/.vs/CloneCustomer/FileContentIndex/c9b8d56b-df6c-4e83-a764-72853e0721f9.vsidx new file mode 100644 index 0000000..170190b Binary files /dev/null and b/clone_customer/.vs/CloneCustomer/FileContentIndex/c9b8d56b-df6c-4e83-a764-72853e0721f9.vsidx differ diff --git a/clone_customer/.vs/CloneCustomer/v17/.futdcache.v2 b/clone_customer/.vs/CloneCustomer/v17/.futdcache.v2 new file mode 100644 index 0000000..07ca1dc Binary files /dev/null and b/clone_customer/.vs/CloneCustomer/v17/.futdcache.v2 differ diff --git a/clone_customer/.vs/CloneCustomer/v17/.suo b/clone_customer/.vs/CloneCustomer/v17/.suo new file mode 100644 index 0000000..7512d98 Binary files /dev/null and b/clone_customer/.vs/CloneCustomer/v17/.suo differ diff --git a/clone_customer/.vs/ProjectEvaluation/clonecustomer.metadata.v7.bin b/clone_customer/.vs/ProjectEvaluation/clonecustomer.metadata.v7.bin new file mode 100644 index 0000000..92bdf29 Binary files /dev/null and b/clone_customer/.vs/ProjectEvaluation/clonecustomer.metadata.v7.bin differ diff --git a/clone_customer/.vs/ProjectEvaluation/clonecustomer.projects.v7.bin b/clone_customer/.vs/ProjectEvaluation/clonecustomer.projects.v7.bin new file mode 100644 index 0000000..65d8c65 Binary files /dev/null and b/clone_customer/.vs/ProjectEvaluation/clonecustomer.projects.v7.bin differ diff --git a/clone_customer/CloneCustomer.sln b/clone_customer/CloneCustomer.sln new file mode 100644 index 0000000..a4c1097 --- /dev/null +++ b/clone_customer/CloneCustomer.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30413.136 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CloneCustomer", "CloneCustomer\CloneCustomer.csproj", "{31B899E1-280D-4898-812A-BA502F28D67B}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {31B899E1-280D-4898-812A-BA502F28D67B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {31B899E1-280D-4898-812A-BA502F28D67B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {31B899E1-280D-4898-812A-BA502F28D67B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {31B899E1-280D-4898-812A-BA502F28D67B}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {70C1B0C3-6867-4548-A0C9-85F3F90BED7D} + EndGlobalSection +EndGlobal diff --git a/clone_customer/CloneCustomer/CloneCustomer.csproj b/clone_customer/CloneCustomer/CloneCustomer.csproj new file mode 100644 index 0000000..7b05c62 --- /dev/null +++ b/clone_customer/CloneCustomer/CloneCustomer.csproj @@ -0,0 +1,9 @@ + + + + WinExe + netcoreapp3.1 + true + + + \ No newline at end of file diff --git a/clone_customer/CloneCustomer/CloneCustomer.csproj.user b/clone_customer/CloneCustomer/CloneCustomer.csproj.user new file mode 100644 index 0000000..a869d18 --- /dev/null +++ b/clone_customer/CloneCustomer/CloneCustomer.csproj.user @@ -0,0 +1,8 @@ + + + + + Form + + + \ No newline at end of file diff --git a/clone_customer/CloneCustomer/Customer.cs b/clone_customer/CloneCustomer/Customer.cs new file mode 100644 index 0000000..7461eec --- /dev/null +++ b/clone_customer/CloneCustomer/Customer.cs @@ -0,0 +1,61 @@ +using System; + +namespace CloneCustomer +{ + public class Customer : ICloneable + { + private string firstName; + private string lastName; + private string email; + + public Customer() + { + } + + public object Clone() + { + return new Customer(this.firstName, this.lastName, this.email); + } + + public Customer(string firstName, string lastName, string email) + { + this.FirstName = firstName; + this.LastName = lastName; + this.Email = email; + } + + public string FirstName + { + get { + return firstName; + } + set { + firstName = value; + } + } + + public string LastName + { + get { + return lastName; + } + set + { + lastName = value; + } + } + + public string Email + { + get { + return email; + } + set { + email = value; + } + } + + public string GetDisplayText() => + firstName + " " + lastName + ", " + email; + } +} diff --git a/clone_customer/CloneCustomer/CustomerList.cs b/clone_customer/CloneCustomer/CustomerList.cs new file mode 100644 index 0000000..58e106b --- /dev/null +++ b/clone_customer/CloneCustomer/CustomerList.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; + +namespace CloneCustomer +{ + public class CustomerList + { + private List customers = new List(); + + public int Count => customers.Count; + + public Customer this[int i] => customers[i]; + + public void Add(Customer customer) => customers.Add(customer); + } +} diff --git a/clone_customer/CloneCustomer/Program.cs b/clone_customer/CloneCustomer/Program.cs new file mode 100644 index 0000000..cfa50fe --- /dev/null +++ b/clone_customer/CloneCustomer/Program.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace CloneCustomer +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.SetHighDpiMode(HighDpiMode.SystemAware); + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new frmMain()); + } + } +} diff --git a/clone_customer/CloneCustomer/Validator.cs b/clone_customer/CloneCustomer/Validator.cs new file mode 100644 index 0000000..ddc01b6 --- /dev/null +++ b/clone_customer/CloneCustomer/Validator.cs @@ -0,0 +1,81 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace CustomerMaintenance +{ + public static class Validator + { + private static string lineEnd = "\n"; + + public static string LineEnd + { + get + { + return lineEnd; + } + set + { + lineEnd = value; + } + } + + public static string IsPresent(string value, string name) + { + string msg = ""; + if (value == "") + { + msg += name + " is a required field." + LineEnd; + } + return msg; + } + + public static string IsDecimal(string value, string name) + { + string msg = ""; + if (!Decimal.TryParse(value, out _)) + { + msg += name + " must be a valid decimal value." + LineEnd; + } + return msg; + } + + public static string IsInt32(string value, string name) + { + string msg = ""; + if (!Int32.TryParse(value, out _)) + { + msg += name + " must be a valid integer value." + LineEnd; + } + return msg; + } + + public static string IsWithinRange(string value, string name, decimal min, + decimal max) + { + string msg = ""; + if (Decimal.TryParse(value, out decimal number)) + { + if (number < min || number > max) + { + msg += name + " must be between " + min + " and " + max + "." + LineEnd; + } + } + return msg; + } + + public static string IsValidEmail(string value, string name) + { + string msg = ""; + if (value.IndexOf("@") == -1 || + value.IndexOf(".") == -1) + { + msg += name + " must be a valid email address." + LineEnd; + } + return msg; + } + } +} diff --git a/clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.deps.json b/clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.deps.json new file mode 100644 index 0000000..011f6c4 --- /dev/null +++ b/clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v3.1", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v3.1": { + "CloneCustomer/1.0.0": { + "runtime": { + "CloneCustomer.dll": {} + } + } + } + }, + "libraries": { + "CloneCustomer/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.dll b/clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.dll new file mode 100644 index 0000000..f602dd7 Binary files /dev/null and b/clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.dll differ diff --git a/clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.exe b/clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.exe new file mode 100644 index 0000000..509dccb Binary files /dev/null and b/clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.exe differ diff --git a/clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.pdb b/clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.pdb new file mode 100644 index 0000000..407184e Binary files /dev/null and b/clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.pdb differ diff --git a/clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.runtimeconfig.dev.json b/clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.runtimeconfig.dev.json new file mode 100644 index 0000000..214bf78 --- /dev/null +++ b/clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.runtimeconfig.dev.json @@ -0,0 +1,8 @@ +{ + "runtimeOptions": { + "additionalProbingPaths": [ + "C:\\Users\\User\\.dotnet\\store\\|arch|\\|tfm|", + "C:\\Users\\User\\.nuget\\packages" + ] + } +} \ No newline at end of file diff --git a/clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.runtimeconfig.json b/clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.runtimeconfig.json new file mode 100644 index 0000000..9b3a644 --- /dev/null +++ b/clone_customer/CloneCustomer/bin/Debug/netcoreapp3.1/CloneCustomer.runtimeconfig.json @@ -0,0 +1,9 @@ +{ + "runtimeOptions": { + "tfm": "netcoreapp3.1", + "framework": { + "name": "Microsoft.WindowsDesktop.App", + "version": "3.1.0" + } + } +} \ No newline at end of file diff --git a/clone_customer/CloneCustomer/frmMain.Designer.cs b/clone_customer/CloneCustomer/frmMain.Designer.cs new file mode 100644 index 0000000..570b918 --- /dev/null +++ b/clone_customer/CloneCustomer/frmMain.Designer.cs @@ -0,0 +1,129 @@ +namespace CloneCustomer +{ + partial class frmMain + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + btnExit = new System.Windows.Forms.Button(); + lblCustomer = new System.Windows.Forms.Label(); + label1 = new System.Windows.Forms.Label(); + txtCopies = new System.Windows.Forms.TextBox(); + btnClone = new System.Windows.Forms.Button(); + lstCustomers = new System.Windows.Forms.ListBox(); + SuspendLayout(); + // + // btnExit + // + btnExit.DialogResult = System.Windows.Forms.DialogResult.Cancel; + btnExit.Location = new System.Drawing.Point(341, 232); + btnExit.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); + btnExit.Name = "btnExit"; + btnExit.Size = new System.Drawing.Size(88, 27); + btnExit.TabIndex = 19; + btnExit.Text = "Exit"; + btnExit.Click += btnExit_Click; + // + // lblCustomer + // + lblCustomer.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + lblCustomer.Location = new System.Drawing.Point(14, 10); + lblCustomer.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + lblCustomer.Name = "lblCustomer"; + lblCustomer.Size = new System.Drawing.Size(308, 46); + lblCustomer.TabIndex = 18; + // + // label1 + // + label1.Location = new System.Drawing.Point(23, 66); + label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label1.Name = "label1"; + label1.Size = new System.Drawing.Size(56, 27); + label1.TabIndex = 17; + label1.Text = "Copies:"; + label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // txtCopies + // + txtCopies.Location = new System.Drawing.Point(89, 66); + txtCopies.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); + txtCopies.Name = "txtCopies"; + txtCopies.Size = new System.Drawing.Size(55, 23); + txtCopies.TabIndex = 16; + txtCopies.Tag = "Copies"; + // + // btnClone + // + btnClone.Location = new System.Drawing.Point(163, 66); + btnClone.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); + btnClone.Name = "btnClone"; + btnClone.Size = new System.Drawing.Size(88, 27); + btnClone.TabIndex = 15; + btnClone.Text = "Clone"; + btnClone.Click += btnClone_Click; + // + // lstCustomers + // + lstCustomers.ItemHeight = 15; + lstCustomers.Location = new System.Drawing.Point(14, 103); + lstCustomers.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); + lstCustomers.Name = "lstCustomers"; + lstCustomers.Size = new System.Drawing.Size(307, 154); + lstCustomers.TabIndex = 14; + // + // frmMain + // + AcceptButton = btnClone; + AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + CancelButton = btnExit; + ClientSize = new System.Drawing.Size(451, 271); + Controls.Add(btnExit); + Controls.Add(lblCustomer); + Controls.Add(label1); + Controls.Add(txtCopies); + Controls.Add(btnClone); + Controls.Add(lstCustomers); + Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); + Name = "frmMain"; + StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + Text = "Clone Customer"; + Load += Form1_Load; + ResumeLayout(false); + PerformLayout(); + } + + #endregion + + private System.Windows.Forms.Button btnExit; + private System.Windows.Forms.Label lblCustomer; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.TextBox txtCopies; + private System.Windows.Forms.Button btnClone; + private System.Windows.Forms.ListBox lstCustomers; + } +} + diff --git a/clone_customer/CloneCustomer/frmMain.cs b/clone_customer/CloneCustomer/frmMain.cs new file mode 100644 index 0000000..0b2c911 --- /dev/null +++ b/clone_customer/CloneCustomer/frmMain.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using CustomerMaintenance; + +namespace CloneCustomer +{ + public partial class frmMain : Form + { + public frmMain() + { + InitializeComponent(); + } + + private Customer customer; + private List customers; + + private void Form1_Load(object sender, System.EventArgs e) + { + customer = new Customer("John", "Mendez", "jmendez@msysco.com"); + lblCustomer.Text = customer.GetDisplayText(); + } + + private void btnClone_Click(object sender, EventArgs e) + { + if (Validator.IsPresent(txtCopies.Text, txtCopies.Name) != "") { + MessageBox.Show("You need to enter the amount of copies to create"); + return; + } + if (Validator.IsInt32(txtCopies.Text, txtCopies.Name) != "") { + MessageBox.Show("The amount of copies must be a whole number"); + return; + } + int copies = int.Parse(txtCopies.Text); + + customers = new List(copies); + for (int i = 0; i < copies; ++i) + customers.Add((Customer)customer.Clone()); + foreach (Customer i in customers) + lstCustomers.Items.Add(i.GetDisplayText()); + } + + private void btnExit_Click(object sender, System.EventArgs e) + { + this.Close(); + } + } +} diff --git a/clone_customer/CloneCustomer/frmMain.resx b/clone_customer/CloneCustomer/frmMain.resx new file mode 100644 index 0000000..b92c163 --- /dev/null +++ b/clone_customer/CloneCustomer/frmMain.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/clone_customer/CloneCustomer/obj/CloneCustomer.csproj.nuget.dgspec.json b/clone_customer/CloneCustomer/obj/CloneCustomer.csproj.nuget.dgspec.json new file mode 100644 index 0000000..87bfff4 --- /dev/null +++ b/clone_customer/CloneCustomer/obj/CloneCustomer.csproj.nuget.dgspec.json @@ -0,0 +1,66 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\User\\Documents\\cs\\ex15-1\\CloneCustomer\\CloneCustomer.csproj": {} + }, + "projects": { + "C:\\Users\\User\\Documents\\cs\\ex15-1\\CloneCustomer\\CloneCustomer.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\User\\Documents\\cs\\ex15-1\\CloneCustomer\\CloneCustomer.csproj", + "projectName": "CloneCustomer", + "projectPath": "C:\\Users\\User\\Documents\\cs\\ex15-1\\CloneCustomer\\CloneCustomer.csproj", + "packagesPath": "C:\\Users\\User\\.nuget\\packages\\", + "outputPath": "C:\\Users\\User\\Documents\\cs\\ex15-1\\CloneCustomer\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\User\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + }, + "Microsoft.WindowsDesktop.App.WindowsForms": { + "privateAssets": "none" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.100\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/clone_customer/CloneCustomer/obj/CloneCustomer.csproj.nuget.g.props b/clone_customer/CloneCustomer/obj/CloneCustomer.csproj.nuget.g.props new file mode 100644 index 0000000..af28506 --- /dev/null +++ b/clone_customer/CloneCustomer/obj/CloneCustomer.csproj.nuget.g.props @@ -0,0 +1,15 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\User\.nuget\packages\ + PackageReference + 6.8.0 + + + + + \ No newline at end of file diff --git a/clone_customer/CloneCustomer/obj/CloneCustomer.csproj.nuget.g.targets b/clone_customer/CloneCustomer/obj/CloneCustomer.csproj.nuget.g.targets new file mode 100644 index 0000000..35a7576 --- /dev/null +++ b/clone_customer/CloneCustomer/obj/CloneCustomer.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs new file mode 100644 index 0000000..3364fdf --- /dev/null +++ b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = ".NET Core 3.1")] diff --git a/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.AssemblyInfo.cs b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.AssemblyInfo.cs new file mode 100644 index 0000000..77f40aa --- /dev/null +++ b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("CloneCustomer")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("CloneCustomer")] +[assembly: System.Reflection.AssemblyTitleAttribute("CloneCustomer")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.AssemblyInfoInputs.cache b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.AssemblyInfoInputs.cache new file mode 100644 index 0000000..236c9e5 --- /dev/null +++ b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +e18ce6b356f001a421b6a9049e345f03356388e85a4ae98d998a126d836763ce diff --git a/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.GeneratedMSBuildEditorConfig.editorconfig b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..6eb9d65 --- /dev/null +++ b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,11 @@ +is_global = true +build_property.ApplicationManifest = +build_property.StartupObject = +build_property.ApplicationDefaultFont = +build_property.ApplicationHighDpiMode = +build_property.ApplicationUseCompatibleTextRendering = +build_property.ApplicationVisualStyles = +build_property.RootNamespace = CloneCustomer +build_property.ProjectDir = C:\Users\User\Documents\cs\ex15-1\CloneCustomer\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = diff --git a/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.assets.cache b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.assets.cache new file mode 100644 index 0000000..f1d515c Binary files /dev/null and b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.assets.cache differ diff --git a/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.csproj.BuildWithSkipAnalyzers b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.csproj.BuildWithSkipAnalyzers new file mode 100644 index 0000000..e69de29 diff --git a/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.csproj.CoreCompileInputs.cache b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..edc0391 --- /dev/null +++ b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +9fa0f172032eced04d24dfb5114efd71ff54379246318905e21c6b082ac86de9 diff --git a/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.csproj.FileListAbsolute.txt b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..1f8ec6a --- /dev/null +++ b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.csproj.FileListAbsolute.txt @@ -0,0 +1,30 @@ +C:\Users\User\Documents\cs\Exercise Starts\Chapter 15\CloneCustomer\CloneCustomer\obj\Debug\netcoreapp3.1\CloneCustomer.frmMain.resources +C:\Users\User\Documents\cs\Exercise Starts\Chapter 15\CloneCustomer\CloneCustomer\obj\Debug\netcoreapp3.1\CloneCustomer.csproj.GenerateResource.cache +C:\Users\User\Documents\cs\Exercise Starts\Chapter 15\CloneCustomer\CloneCustomer\obj\Debug\netcoreapp3.1\CloneCustomer.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\User\Documents\cs\Exercise Starts\Chapter 15\CloneCustomer\CloneCustomer\obj\Debug\netcoreapp3.1\CloneCustomer.AssemblyInfoInputs.cache +C:\Users\User\Documents\cs\Exercise Starts\Chapter 15\CloneCustomer\CloneCustomer\obj\Debug\netcoreapp3.1\CloneCustomer.AssemblyInfo.cs +C:\Users\User\Documents\cs\Exercise Starts\Chapter 15\CloneCustomer\CloneCustomer\obj\Debug\netcoreapp3.1\CloneCustomer.csproj.CoreCompileInputs.cache +C:\Users\User\Documents\cs\Exercise Starts\Chapter 15\CloneCustomer\CloneCustomer\bin\Debug\netcoreapp3.1\CloneCustomer.exe +C:\Users\User\Documents\cs\Exercise Starts\Chapter 15\CloneCustomer\CloneCustomer\bin\Debug\netcoreapp3.1\CloneCustomer.deps.json +C:\Users\User\Documents\cs\Exercise Starts\Chapter 15\CloneCustomer\CloneCustomer\bin\Debug\netcoreapp3.1\CloneCustomer.runtimeconfig.json +C:\Users\User\Documents\cs\Exercise Starts\Chapter 15\CloneCustomer\CloneCustomer\bin\Debug\netcoreapp3.1\CloneCustomer.runtimeconfig.dev.json +C:\Users\User\Documents\cs\Exercise Starts\Chapter 15\CloneCustomer\CloneCustomer\bin\Debug\netcoreapp3.1\CloneCustomer.dll +C:\Users\User\Documents\cs\Exercise Starts\Chapter 15\CloneCustomer\CloneCustomer\bin\Debug\netcoreapp3.1\CloneCustomer.pdb +C:\Users\User\Documents\cs\Exercise Starts\Chapter 15\CloneCustomer\CloneCustomer\obj\Debug\netcoreapp3.1\CloneCustomer.dll +C:\Users\User\Documents\cs\Exercise Starts\Chapter 15\CloneCustomer\CloneCustomer\obj\Debug\netcoreapp3.1\CloneCustomer.pdb +C:\Users\User\Documents\cs\Exercise Starts\Chapter 15\CloneCustomer\CloneCustomer\obj\Debug\netcoreapp3.1\CloneCustomer.genruntimeconfig.cache +C:\Users\User\Documents\cs\ex15-1\CloneCustomer\bin\Debug\netcoreapp3.1\CloneCustomer.exe +C:\Users\User\Documents\cs\ex15-1\CloneCustomer\bin\Debug\netcoreapp3.1\CloneCustomer.deps.json +C:\Users\User\Documents\cs\ex15-1\CloneCustomer\bin\Debug\netcoreapp3.1\CloneCustomer.runtimeconfig.json +C:\Users\User\Documents\cs\ex15-1\CloneCustomer\bin\Debug\netcoreapp3.1\CloneCustomer.runtimeconfig.dev.json +C:\Users\User\Documents\cs\ex15-1\CloneCustomer\bin\Debug\netcoreapp3.1\CloneCustomer.dll +C:\Users\User\Documents\cs\ex15-1\CloneCustomer\bin\Debug\netcoreapp3.1\CloneCustomer.pdb +C:\Users\User\Documents\cs\ex15-1\CloneCustomer\obj\Debug\netcoreapp3.1\CloneCustomer.frmMain.resources +C:\Users\User\Documents\cs\ex15-1\CloneCustomer\obj\Debug\netcoreapp3.1\CloneCustomer.csproj.GenerateResource.cache +C:\Users\User\Documents\cs\ex15-1\CloneCustomer\obj\Debug\netcoreapp3.1\CloneCustomer.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\User\Documents\cs\ex15-1\CloneCustomer\obj\Debug\netcoreapp3.1\CloneCustomer.AssemblyInfoInputs.cache +C:\Users\User\Documents\cs\ex15-1\CloneCustomer\obj\Debug\netcoreapp3.1\CloneCustomer.AssemblyInfo.cs +C:\Users\User\Documents\cs\ex15-1\CloneCustomer\obj\Debug\netcoreapp3.1\CloneCustomer.csproj.CoreCompileInputs.cache +C:\Users\User\Documents\cs\ex15-1\CloneCustomer\obj\Debug\netcoreapp3.1\CloneCustomer.dll +C:\Users\User\Documents\cs\ex15-1\CloneCustomer\obj\Debug\netcoreapp3.1\CloneCustomer.pdb +C:\Users\User\Documents\cs\ex15-1\CloneCustomer\obj\Debug\netcoreapp3.1\CloneCustomer.genruntimeconfig.cache diff --git a/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.csproj.GenerateResource.cache b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.csproj.GenerateResource.cache new file mode 100644 index 0000000..aafa0ee Binary files /dev/null and b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.csproj.GenerateResource.cache differ diff --git a/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.designer.deps.json b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.designer.deps.json new file mode 100644 index 0000000..9bb9f82 --- /dev/null +++ b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.designer.deps.json @@ -0,0 +1,11 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v3.1", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v3.1": {} + }, + "libraries": {} +} \ No newline at end of file diff --git a/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.designer.runtimeconfig.json b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.designer.runtimeconfig.json new file mode 100644 index 0000000..fdc9c5f --- /dev/null +++ b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.designer.runtimeconfig.json @@ -0,0 +1,16 @@ +{ + "runtimeOptions": { + "tfm": "netcoreapp3.1", + "framework": { + "name": "Microsoft.WindowsDesktop.App", + "version": "3.1.0" + }, + "additionalProbingPaths": [ + "C:\\Users\\User\\.dotnet\\store\\|arch|\\|tfm|", + "C:\\Users\\User\\.nuget\\packages" + ], + "configProperties": { + "Microsoft.NETCore.DotNetHostPolicy.SetAppPaths": true + } + } +} \ No newline at end of file diff --git a/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.dll b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.dll new file mode 100644 index 0000000..f602dd7 Binary files /dev/null and b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.dll differ diff --git a/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.frmMain.resources b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.frmMain.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.frmMain.resources differ diff --git a/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.genruntimeconfig.cache b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.genruntimeconfig.cache new file mode 100644 index 0000000..960d5a7 --- /dev/null +++ b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.genruntimeconfig.cache @@ -0,0 +1 @@ +037b6c21c9e9ff14caeceb378094b6390e0c30cd463df390f6e1c4c6bdc08df7 diff --git a/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.pdb b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.pdb new file mode 100644 index 0000000..407184e Binary files /dev/null and b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/CloneCustomer.pdb differ diff --git a/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/apphost.exe b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/apphost.exe new file mode 100644 index 0000000..509dccb Binary files /dev/null and b/clone_customer/CloneCustomer/obj/Debug/netcoreapp3.1/apphost.exe differ diff --git a/clone_customer/CloneCustomer/obj/project.assets.json b/clone_customer/CloneCustomer/obj/project.assets.json new file mode 100644 index 0000000..611e036 --- /dev/null +++ b/clone_customer/CloneCustomer/obj/project.assets.json @@ -0,0 +1,71 @@ +{ + "version": 3, + "targets": { + ".NETCoreApp,Version=v3.1": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + ".NETCoreApp,Version=v3.1": [] + }, + "packageFolders": { + "C:\\Users\\User\\.nuget\\packages\\": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\User\\Documents\\cs\\ex15-1\\CloneCustomer\\CloneCustomer.csproj", + "projectName": "CloneCustomer", + "projectPath": "C:\\Users\\User\\Documents\\cs\\ex15-1\\CloneCustomer\\CloneCustomer.csproj", + "packagesPath": "C:\\Users\\User\\.nuget\\packages\\", + "outputPath": "C:\\Users\\User\\Documents\\cs\\ex15-1\\CloneCustomer\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\User\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + }, + "Microsoft.WindowsDesktop.App.WindowsForms": { + "privateAssets": "none" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.100\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/clone_customer/CloneCustomer/obj/project.nuget.cache b/clone_customer/CloneCustomer/obj/project.nuget.cache new file mode 100644 index 0000000..7fded91 --- /dev/null +++ b/clone_customer/CloneCustomer/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "HDdfn2VEH6ZoQK5UPbG2LGkA1aGclsyakinXM0si2/2DmpRDbddCEvY5ZMjn00q15VacwHHoNw6dT0No+h08nA==", + "success": true, + "projectFilePath": "C:\\Users\\User\\Documents\\cs\\ex15-1\\CloneCustomer\\CloneCustomer.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file -- cgit 1.4.1