From c48651e2a37e8af5f1eafff10119eedefa4f96e7 Mon Sep 17 00:00:00 2001 From: ​ Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: customer maintenance --- .../CustomerMaintenance/Customer.cs | 23 +++ .../CustomerMaintenance/CustomerDB.cs | 64 +++++++++ .../CustomerMaintenance/CustomerMaintenance.csproj | 9 ++ .../CustomerMaintenance.csproj.user | 11 ++ .../CustomerMaintenance/Program.cs | 23 +++ .../Properties/launchSettings.json | 8 ++ .../CustomerMaintenance/Validator.cs | 81 +++++++++++ .../netcoreapp3.1/CustomerMaintenance.deps.json | 23 +++ .../Debug/netcoreapp3.1/CustomerMaintenance.dll | Bin 0 -> 14848 bytes .../Debug/netcoreapp3.1/CustomerMaintenance.exe | Bin 0 -> 158208 bytes .../Debug/netcoreapp3.1/CustomerMaintenance.pdb | Bin 0 -> 14732 bytes .../CustomerMaintenance.runtimeconfig.dev.json | 8 ++ .../CustomerMaintenance.runtimeconfig.json | 9 ++ .../CustomerMaintenance/frmAddCustomer.Designer.cs | 156 +++++++++++++++++++++ .../CustomerMaintenance/frmAddCustomer.cs | 47 +++++++ .../CustomerMaintenance/frmAddCustomer.resx | 120 ++++++++++++++++ .../CustomerMaintenance/frmCustomers.Designer.cs | 116 +++++++++++++++ .../CustomerMaintenance/frmCustomers.cs | 58 ++++++++ .../CustomerMaintenance/frmCustomers.resx | 120 ++++++++++++++++ .../CustomerMaintenance.csproj.nuget.dgspec.json | 66 +++++++++ .../obj/CustomerMaintenance.csproj.nuget.g.props | 15 ++ .../obj/CustomerMaintenance.csproj.nuget.g.targets | 2 + .../.NETCoreApp,Version=v3.1.AssemblyAttributes.cs | 4 + .../CustomerMaintenance.AssemblyInfo.cs | 23 +++ .../CustomerMaintenance.AssemblyInfoInputs.cache | 1 + ...nance.GeneratedMSBuildEditorConfig.editorconfig | 11 ++ .../netcoreapp3.1/CustomerMaintenance.assets.cache | Bin 0 -> 151 bytes ...stomerMaintenance.csproj.BuildWithSkipAnalyzers | 0 ...tomerMaintenance.csproj.CoreCompileInputs.cache | 1 + ...CustomerMaintenance.csproj.FileListAbsolute.txt | 40 ++++++ ...stomerMaintenance.csproj.GenerateResource.cache | Bin 0 -> 128 bytes .../CustomerMaintenance.designer.deps.json | 11 ++ ...CustomerMaintenance.designer.runtimeconfig.json | 16 +++ .../Debug/netcoreapp3.1/CustomerMaintenance.dll | Bin 0 -> 14848 bytes .../CustomerMaintenance.frmAddCustomer.resources | Bin 0 -> 180 bytes .../CustomerMaintenance.frmCustomers.resources | Bin 0 -> 180 bytes .../CustomerMaintenance.genruntimeconfig.cache | 1 + .../Debug/netcoreapp3.1/CustomerMaintenance.pdb | Bin 0 -> 14732 bytes .../obj/Debug/netcoreapp3.1/apphost.exe | Bin 0 -> 158208 bytes .../CustomerMaintenance/obj/project.assets.json | 71 ++++++++++ .../CustomerMaintenance/obj/project.nuget.cache | 8 ++ 41 files changed, 1146 insertions(+) create mode 100644 customer_maintenance/CustomerMaintenance/Customer.cs create mode 100644 customer_maintenance/CustomerMaintenance/CustomerDB.cs create mode 100644 customer_maintenance/CustomerMaintenance/CustomerMaintenance.csproj create mode 100644 customer_maintenance/CustomerMaintenance/CustomerMaintenance.csproj.user create mode 100644 customer_maintenance/CustomerMaintenance/Program.cs create mode 100644 customer_maintenance/CustomerMaintenance/Properties/launchSettings.json create mode 100644 customer_maintenance/CustomerMaintenance/Validator.cs create mode 100644 customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.deps.json create mode 100644 customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.dll create mode 100644 customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.exe create mode 100644 customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.pdb create mode 100644 customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.runtimeconfig.dev.json create mode 100644 customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.runtimeconfig.json create mode 100644 customer_maintenance/CustomerMaintenance/frmAddCustomer.Designer.cs create mode 100644 customer_maintenance/CustomerMaintenance/frmAddCustomer.cs create mode 100644 customer_maintenance/CustomerMaintenance/frmAddCustomer.resx create mode 100644 customer_maintenance/CustomerMaintenance/frmCustomers.Designer.cs create mode 100644 customer_maintenance/CustomerMaintenance/frmCustomers.cs create mode 100644 customer_maintenance/CustomerMaintenance/frmCustomers.resx create mode 100644 customer_maintenance/CustomerMaintenance/obj/CustomerMaintenance.csproj.nuget.dgspec.json create mode 100644 customer_maintenance/CustomerMaintenance/obj/CustomerMaintenance.csproj.nuget.g.props create mode 100644 customer_maintenance/CustomerMaintenance/obj/CustomerMaintenance.csproj.nuget.g.targets create mode 100644 customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs create mode 100644 customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.AssemblyInfo.cs create mode 100644 customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.AssemblyInfoInputs.cache create mode 100644 customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.GeneratedMSBuildEditorConfig.editorconfig create mode 100644 customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.assets.cache create mode 100644 customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.csproj.BuildWithSkipAnalyzers create mode 100644 customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.csproj.CoreCompileInputs.cache create mode 100644 customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.csproj.FileListAbsolute.txt create mode 100644 customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.csproj.GenerateResource.cache create mode 100644 customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.designer.deps.json create mode 100644 customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.designer.runtimeconfig.json create mode 100644 customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.dll create mode 100644 customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.frmAddCustomer.resources create mode 100644 customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.frmCustomers.resources create mode 100644 customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.genruntimeconfig.cache create mode 100644 customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.pdb create mode 100644 customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/apphost.exe create mode 100644 customer_maintenance/CustomerMaintenance/obj/project.assets.json create mode 100644 customer_maintenance/CustomerMaintenance/obj/project.nuget.cache (limited to 'customer_maintenance/CustomerMaintenance') diff --git a/customer_maintenance/CustomerMaintenance/Customer.cs b/customer_maintenance/CustomerMaintenance/Customer.cs new file mode 100644 index 0000000..138b469 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/Customer.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace CustomerMaintenance +{ + public class Customer + { + public string FirstName{get; set;} + public string LastName{get; set;} + public string Email{get; set;} + + public Customer(string firstName = "", string lastName = "", + string email = "") => + (this.FirstName, this.LastName, this.Email) + = (firstName, lastName, email); + + public string GetDisplayText() { + return FirstName + " " + LastName + + ", " + Email; + } + } +} diff --git a/customer_maintenance/CustomerMaintenance/CustomerDB.cs b/customer_maintenance/CustomerMaintenance/CustomerDB.cs new file mode 100644 index 0000000..a1a3fc6 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/CustomerDB.cs @@ -0,0 +1,64 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.IO; + +namespace CustomerMaintenance +{ + public static class CustomerDB + { + private const string dir = @"C:\C#\Files\"; + private const string path = dir + "Customers.txt"; + + + public static void SaveCustomers(List customers) + { + // create the output stream for a text file that exists + StreamWriter textOut = + new StreamWriter( + new FileStream(path, FileMode.Create, FileAccess.Write)); + + // write each customer + foreach (Customer customer in customers) + { + textOut.Write(customer.FirstName + "|"); + textOut.Write(customer.LastName + "|"); + textOut.WriteLine(customer.Email); + } + + // write the end of the document + textOut.Close(); + } + + public static List GetCustomers() + { + // if the directory doesn't exist, create it + if (!Directory.Exists(dir)) + Directory.CreateDirectory(dir); + + // create the object for the input stream for a text file + StreamReader textIn = + new StreamReader( + new FileStream(path, FileMode.OpenOrCreate, FileAccess.Read)); + + // create the array list for customers + List customers = new List(); + + // read the data from the file and store it in the ArrayList + while (textIn.Peek() != -1) + { + string row = textIn.ReadLine(); + string[] columns = row.Split('|'); + Customer customer = new Customer(); + customer.FirstName = columns[0]; + customer.LastName = columns[1]; + customer.Email = columns[2]; + customers.Add(customer); + } + + textIn.Close(); + + return customers; + } + } +} diff --git a/customer_maintenance/CustomerMaintenance/CustomerMaintenance.csproj b/customer_maintenance/CustomerMaintenance/CustomerMaintenance.csproj new file mode 100644 index 0000000..7b05c62 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/CustomerMaintenance.csproj @@ -0,0 +1,9 @@ + + + + WinExe + netcoreapp3.1 + true + + + \ No newline at end of file diff --git a/customer_maintenance/CustomerMaintenance/CustomerMaintenance.csproj.user b/customer_maintenance/CustomerMaintenance/CustomerMaintenance.csproj.user new file mode 100644 index 0000000..85671fd --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/CustomerMaintenance.csproj.user @@ -0,0 +1,11 @@ + + + + + Form + + + Form + + + \ No newline at end of file diff --git a/customer_maintenance/CustomerMaintenance/Program.cs b/customer_maintenance/CustomerMaintenance/Program.cs new file mode 100644 index 0000000..ac28377 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/Program.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace CustomerMaintenance +{ + 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 frmCustomers()); + } + } +} diff --git a/customer_maintenance/CustomerMaintenance/Properties/launchSettings.json b/customer_maintenance/CustomerMaintenance/Properties/launchSettings.json new file mode 100644 index 0000000..f8d6e4a --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/Properties/launchSettings.json @@ -0,0 +1,8 @@ +{ + "profiles": { + "CustomerMaintenance": { + "commandName": "Project", + "commandLineArgs": "Hello Darkness My Old Friend" + } + } +} \ No newline at end of file diff --git a/customer_maintenance/CustomerMaintenance/Validator.cs b/customer_maintenance/CustomerMaintenance/Validator.cs new file mode 100644 index 0000000..ddc01b6 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/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/customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.deps.json b/customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.deps.json new file mode 100644 index 0000000..d3fd793 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v3.1", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v3.1": { + "CustomerMaintenance/1.0.0": { + "runtime": { + "CustomerMaintenance.dll": {} + } + } + } + }, + "libraries": { + "CustomerMaintenance/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.dll b/customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.dll new file mode 100644 index 0000000..44e7090 Binary files /dev/null and b/customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.dll differ diff --git a/customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.exe b/customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.exe new file mode 100644 index 0000000..6ac5517 Binary files /dev/null and b/customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.exe differ diff --git a/customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.pdb b/customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.pdb new file mode 100644 index 0000000..709773b Binary files /dev/null and b/customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.pdb differ diff --git a/customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.runtimeconfig.dev.json b/customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.runtimeconfig.dev.json new file mode 100644 index 0000000..214bf78 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.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/customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.runtimeconfig.json b/customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.runtimeconfig.json new file mode 100644 index 0000000..9b3a644 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/bin/Debug/netcoreapp3.1/CustomerMaintenance.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/customer_maintenance/CustomerMaintenance/frmAddCustomer.Designer.cs b/customer_maintenance/CustomerMaintenance/frmAddCustomer.Designer.cs new file mode 100644 index 0000000..67b0c2a --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/frmAddCustomer.Designer.cs @@ -0,0 +1,156 @@ +namespace CustomerMaintenance +{ + partial class frmAddCustomer + { + /// + /// 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() + { + txtEmail = new System.Windows.Forms.TextBox(); + txtLastName = new System.Windows.Forms.TextBox(); + txtFirstName = new System.Windows.Forms.TextBox(); + label4 = new System.Windows.Forms.Label(); + label3 = new System.Windows.Forms.Label(); + label2 = new System.Windows.Forms.Label(); + btnCancel = new System.Windows.Forms.Button(); + btnSave = new System.Windows.Forms.Button(); + SuspendLayout(); + // + // txtEmail + // + txtEmail.Location = new System.Drawing.Point(97, 88); + txtEmail.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); + txtEmail.Name = "txtEmail"; + txtEmail.Size = new System.Drawing.Size(205, 23); + txtEmail.TabIndex = 15; + txtEmail.Tag = "Email"; + // + // txtLastName + // + txtLastName.Location = new System.Drawing.Point(97, 51); + txtLastName.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); + txtLastName.Name = "txtLastName"; + txtLastName.Size = new System.Drawing.Size(205, 23); + txtLastName.TabIndex = 14; + txtLastName.Tag = "Last Name"; + // + // txtFirstName + // + txtFirstName.Location = new System.Drawing.Point(97, 14); + txtFirstName.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); + txtFirstName.Name = "txtFirstName"; + txtFirstName.Size = new System.Drawing.Size(205, 23); + txtFirstName.TabIndex = 13; + txtFirstName.Tag = "First Name"; + // + // label4 + // + label4.Location = new System.Drawing.Point(13, 88); + label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label4.Name = "label4"; + label4.Size = new System.Drawing.Size(84, 27); + label4.TabIndex = 20; + label4.Text = "Email:"; + label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label3 + // + label3.Location = new System.Drawing.Point(13, 51); + label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label3.Name = "label3"; + label3.Size = new System.Drawing.Size(84, 27); + label3.TabIndex = 19; + label3.Text = "Last Name:"; + label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label2 + // + label2.Location = new System.Drawing.Point(13, 14); + label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label2.Name = "label2"; + label2.Size = new System.Drawing.Size(84, 27); + label2.TabIndex = 18; + label2.Text = "First Name:"; + label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // btnCancel + // + btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; + btnCancel.Location = new System.Drawing.Point(212, 123); + btnCancel.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); + btnCancel.Name = "btnCancel"; + btnCancel.Size = new System.Drawing.Size(88, 27); + btnCancel.TabIndex = 17; + btnCancel.Text = "&Cancel"; + btnCancel.Click += btnCancel_Click; + // + // btnSave + // + btnSave.Location = new System.Drawing.Point(118, 123); + btnSave.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); + btnSave.Name = "btnSave"; + btnSave.Size = new System.Drawing.Size(88, 27); + btnSave.TabIndex = 16; + btnSave.Text = "&Save"; + btnSave.Click += btnSave_Click; + // + // frmAddCustomer + // + AcceptButton = btnSave; + AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + CancelButton = btnCancel; + ClientSize = new System.Drawing.Size(317, 170); + ControlBox = false; + Controls.Add(txtEmail); + Controls.Add(txtLastName); + Controls.Add(txtFirstName); + Controls.Add(label4); + Controls.Add(label3); + Controls.Add(label2); + Controls.Add(btnCancel); + Controls.Add(btnSave); + FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); + MaximizeBox = false; + Name = "frmAddCustomer"; + StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + Text = "Add Customer"; + ResumeLayout(false); + PerformLayout(); + } + + #endregion + + private System.Windows.Forms.TextBox txtEmail; + private System.Windows.Forms.TextBox txtLastName; + private System.Windows.Forms.TextBox txtFirstName; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Button btnCancel; + private System.Windows.Forms.Button btnSave; + } +} \ No newline at end of file diff --git a/customer_maintenance/CustomerMaintenance/frmAddCustomer.cs b/customer_maintenance/CustomerMaintenance/frmAddCustomer.cs new file mode 100644 index 0000000..4021cfd --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/frmAddCustomer.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; + +namespace CustomerMaintenance +{ + public partial class frmAddCustomer : Form + { + public frmAddCustomer() + { + InitializeComponent(); + } + + Customer customer = null; + + public Customer GetNewCustomer() + { + this.ShowDialog(); + return customer; + } + + private void btnSave_Click(object sender, EventArgs e) + { + string msg = "" + + Validator.IsPresent(txtFirstName.Text, txtFirstName.Tag.ToString()) + + Validator.IsPresent(txtLastName.Text, txtLastName.Tag.ToString()) + + Validator.IsValidEmail(txtEmail.Text, txtEmail.Tag.ToString()); + if (msg != "") { + MessageBox.Show(msg, "Entry Error"); + return; + } + + customer = new Customer(txtFirstName.Text, txtLastName.Text, + txtEmail.Text); + this.Close(); + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + } +} diff --git a/customer_maintenance/CustomerMaintenance/frmAddCustomer.resx b/customer_maintenance/CustomerMaintenance/frmAddCustomer.resx new file mode 100644 index 0000000..b92c163 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/frmAddCustomer.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/customer_maintenance/CustomerMaintenance/frmCustomers.Designer.cs b/customer_maintenance/CustomerMaintenance/frmCustomers.Designer.cs new file mode 100644 index 0000000..4f5b60a --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/frmCustomers.Designer.cs @@ -0,0 +1,116 @@ +namespace CustomerMaintenance +{ + partial class frmCustomers + { + /// + /// 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() + { + btnDelete = new System.Windows.Forms.Button(); + btnAdd = new System.Windows.Forms.Button(); + lstCustomers = new System.Windows.Forms.ListBox(); + btnExit = new System.Windows.Forms.Button(); + label1 = new System.Windows.Forms.Label(); + SuspendLayout(); + // + // btnDelete + // + btnDelete.Location = new System.Drawing.Point(359, 72); + btnDelete.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); + btnDelete.Name = "btnDelete"; + btnDelete.Size = new System.Drawing.Size(88, 27); + btnDelete.TabIndex = 8; + btnDelete.Text = "&Delete"; + btnDelete.Click += btnDelete_Click; + // + // btnAdd + // + btnAdd.Location = new System.Drawing.Point(359, 35); + btnAdd.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); + btnAdd.Name = "btnAdd"; + btnAdd.Size = new System.Drawing.Size(88, 27); + btnAdd.TabIndex = 7; + btnAdd.Text = "&Add"; + btnAdd.Click += btnAdd_Click; + // + // lstCustomers + // + lstCustomers.ItemHeight = 15; + lstCustomers.Location = new System.Drawing.Point(14, 35); + lstCustomers.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); + lstCustomers.Name = "lstCustomers"; + lstCustomers.Size = new System.Drawing.Size(326, 169); + lstCustomers.TabIndex = 5; + // + // btnExit + // + btnExit.DialogResult = System.Windows.Forms.DialogResult.Cancel; + btnExit.Location = new System.Drawing.Point(359, 108); + btnExit.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); + btnExit.Name = "btnExit"; + btnExit.Size = new System.Drawing.Size(88, 27); + btnExit.TabIndex = 9; + btnExit.Text = "&Exit"; + btnExit.Click += btnExit_Click; + // + // label1 + // + label1.Location = new System.Drawing.Point(14, 10); + label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label1.Name = "label1"; + label1.Size = new System.Drawing.Size(112, 21); + label1.TabIndex = 6; + label1.Text = "Customers:"; + label1.TextAlign = System.Drawing.ContentAlignment.BottomLeft; + // + // frmCustomers + // + AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + CancelButton = btnExit; + ClientSize = new System.Drawing.Size(470, 220); + Controls.Add(btnDelete); + Controls.Add(btnAdd); + Controls.Add(lstCustomers); + Controls.Add(btnExit); + Controls.Add(label1); + Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); + Name = "frmCustomers"; + StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + Text = "Customer Maintenance"; + Load += frmCustomers_Load; + ResumeLayout(false); + } + + #endregion + + private System.Windows.Forms.Button btnDelete; + private System.Windows.Forms.Button btnAdd; + private System.Windows.Forms.ListBox lstCustomers; + private System.Windows.Forms.Button btnExit; + private System.Windows.Forms.Label label1; + } +} + diff --git a/customer_maintenance/CustomerMaintenance/frmCustomers.cs b/customer_maintenance/CustomerMaintenance/frmCustomers.cs new file mode 100644 index 0000000..d40bb11 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/frmCustomers.cs @@ -0,0 +1,58 @@ +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; + +namespace CustomerMaintenance +{ + public partial class frmCustomers : Form + { + public frmCustomers() + { + InitializeComponent(); + } + + public List customers = null; + + private void frmCustomers_Load(object sender, EventArgs e) + { + customers = CustomerDB.GetCustomers(); + foreach (Customer i in customers) + lstCustomers.Items.Add(i.GetDisplayText()); + } + + private void btnAdd_Click(object sender, EventArgs e) + { + frmAddCustomer customer = new frmAddCustomer(); + Customer newCustomer = customer.GetNewCustomer(); + if (newCustomer != null) + customers.Add(newCustomer); + + CustomerDB.SaveCustomers(customers); + lstCustomers.Items.Clear(); + foreach (Customer i in customers) + lstCustomers.Items.Add(i.GetDisplayText()); + } + + private void btnDelete_Click(object sender, EventArgs e) + { + if (lstCustomers.SelectedIndex != -1) + customers.RemoveAt(lstCustomers.SelectedIndex); + + CustomerDB.SaveCustomers(customers); + lstCustomers.Items.Clear(); + foreach (Customer i in customers) + lstCustomers.Items.Add(i.GetDisplayText()); + } + + private void btnExit_Click(object sender, EventArgs e) + { + this.Close(); + } + } +} diff --git a/customer_maintenance/CustomerMaintenance/frmCustomers.resx b/customer_maintenance/CustomerMaintenance/frmCustomers.resx new file mode 100644 index 0000000..b92c163 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/frmCustomers.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/customer_maintenance/CustomerMaintenance/obj/CustomerMaintenance.csproj.nuget.dgspec.json b/customer_maintenance/CustomerMaintenance/obj/CustomerMaintenance.csproj.nuget.dgspec.json new file mode 100644 index 0000000..a343797 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/obj/CustomerMaintenance.csproj.nuget.dgspec.json @@ -0,0 +1,66 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\User\\Documents\\cs\\Exercise Starts\\Chapter 12\\CustomerMaintenance\\CustomerMaintenance\\CustomerMaintenance.csproj": {} + }, + "projects": { + "C:\\Users\\User\\Documents\\cs\\Exercise Starts\\Chapter 12\\CustomerMaintenance\\CustomerMaintenance\\CustomerMaintenance.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\User\\Documents\\cs\\Exercise Starts\\Chapter 12\\CustomerMaintenance\\CustomerMaintenance\\CustomerMaintenance.csproj", + "projectName": "CustomerMaintenance", + "projectPath": "C:\\Users\\User\\Documents\\cs\\Exercise Starts\\Chapter 12\\CustomerMaintenance\\CustomerMaintenance\\CustomerMaintenance.csproj", + "packagesPath": "C:\\Users\\User\\.nuget\\packages\\", + "outputPath": "C:\\Users\\User\\Documents\\cs\\Exercise Starts\\Chapter 12\\CustomerMaintenance\\CustomerMaintenance\\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/customer_maintenance/CustomerMaintenance/obj/CustomerMaintenance.csproj.nuget.g.props b/customer_maintenance/CustomerMaintenance/obj/CustomerMaintenance.csproj.nuget.g.props new file mode 100644 index 0000000..af28506 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/obj/CustomerMaintenance.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/customer_maintenance/CustomerMaintenance/obj/CustomerMaintenance.csproj.nuget.g.targets b/customer_maintenance/CustomerMaintenance/obj/CustomerMaintenance.csproj.nuget.g.targets new file mode 100644 index 0000000..35a7576 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/obj/CustomerMaintenance.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs new file mode 100644 index 0000000..3364fdf --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/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/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.AssemblyInfo.cs b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.AssemblyInfo.cs new file mode 100644 index 0000000..c1791a1 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.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("CustomerMaintenance")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("CustomerMaintenance")] +[assembly: System.Reflection.AssemblyTitleAttribute("CustomerMaintenance")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.AssemblyInfoInputs.cache b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.AssemblyInfoInputs.cache new file mode 100644 index 0000000..3d031a2 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +2b5b56016897ba9e18ca8673431d68449aebe4c513d689a2a25faa26b6ca37f6 diff --git a/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.GeneratedMSBuildEditorConfig.editorconfig b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..7892d27 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.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 = CustomerMaintenance +build_property.ProjectDir = C:\Users\User\Documents\cs\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = diff --git a/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.assets.cache b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.assets.cache new file mode 100644 index 0000000..6124af1 Binary files /dev/null and b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.assets.cache differ diff --git a/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.csproj.BuildWithSkipAnalyzers b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.csproj.BuildWithSkipAnalyzers new file mode 100644 index 0000000..e69de29 diff --git a/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.csproj.CoreCompileInputs.cache b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..b99453c --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +082547597834cf1c5e119290a95b53b7c29c2cf3532f1d044a0899803d8f4c17 diff --git a/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.csproj.FileListAbsolute.txt b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..ef17d06 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.csproj.FileListAbsolute.txt @@ -0,0 +1,40 @@ +C:\murach\C#\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.csproj.AssemblyReference.cache +C:\murach\C#\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.frmAddCustomer.resources +C:\murach\C#\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.frmCustomers.resources +C:\murach\C#\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.csproj.GenerateResource.cache +C:\murach\C#\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.AssemblyInfoInputs.cache +C:\murach\C#\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.AssemblyInfo.cs +C:\murach\C#\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.csproj.CoreCompileInputs.cache +C:\Users\andrew.honey\OneDrive - Southeast Technical College\Desktop\CIS 131\Student Download\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.csproj.AssemblyReference.cache +C:\Users\andrew.honey\OneDrive - Southeast Technical College\Desktop\CIS 131\Student Download\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.frmAddCustomer.resources +C:\Users\andrew.honey\OneDrive - Southeast Technical College\Desktop\CIS 131\Student Download\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.frmCustomers.resources +C:\Users\andrew.honey\OneDrive - Southeast Technical College\Desktop\CIS 131\Student Download\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.csproj.GenerateResource.cache +C:\Users\andrew.honey\OneDrive - Southeast Technical College\Desktop\CIS 131\Student Download\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\andrew.honey\OneDrive - Southeast Technical College\Desktop\CIS 131\Student Download\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.AssemblyInfoInputs.cache +C:\Users\andrew.honey\OneDrive - Southeast Technical College\Desktop\CIS 131\Student Download\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.AssemblyInfo.cs +C:\Users\andrew.honey\OneDrive - Southeast Technical College\Desktop\CIS 131\Student Download\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.csproj.CoreCompileInputs.cache +C:\Users\andrew.honey\OneDrive - Southeast Technical College\Desktop\CIS 131\Student Download\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\bin\Debug\netcoreapp3.1\CustomerMaintenance.exe +C:\Users\andrew.honey\OneDrive - Southeast Technical College\Desktop\CIS 131\Student Download\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\bin\Debug\netcoreapp3.1\CustomerMaintenance.deps.json +C:\Users\andrew.honey\OneDrive - Southeast Technical College\Desktop\CIS 131\Student Download\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\bin\Debug\netcoreapp3.1\CustomerMaintenance.runtimeconfig.json +C:\Users\andrew.honey\OneDrive - Southeast Technical College\Desktop\CIS 131\Student Download\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\bin\Debug\netcoreapp3.1\CustomerMaintenance.runtimeconfig.dev.json +C:\Users\andrew.honey\OneDrive - Southeast Technical College\Desktop\CIS 131\Student Download\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\bin\Debug\netcoreapp3.1\CustomerMaintenance.dll +C:\Users\andrew.honey\OneDrive - Southeast Technical College\Desktop\CIS 131\Student Download\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\bin\Debug\netcoreapp3.1\CustomerMaintenance.pdb +C:\Users\andrew.honey\OneDrive - Southeast Technical College\Desktop\CIS 131\Student Download\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.dll +C:\Users\andrew.honey\OneDrive - Southeast Technical College\Desktop\CIS 131\Student Download\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.pdb +C:\Users\andrew.honey\OneDrive - Southeast Technical College\Desktop\CIS 131\Student Download\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.genruntimeconfig.cache +C:\Users\User\Documents\cs\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.frmAddCustomer.resources +C:\Users\User\Documents\cs\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.frmCustomers.resources +C:\Users\User\Documents\cs\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.csproj.GenerateResource.cache +C:\Users\User\Documents\cs\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\User\Documents\cs\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.AssemblyInfoInputs.cache +C:\Users\User\Documents\cs\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.AssemblyInfo.cs +C:\Users\User\Documents\cs\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.csproj.CoreCompileInputs.cache +C:\Users\User\Documents\cs\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.dll +C:\Users\User\Documents\cs\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.pdb +C:\Users\User\Documents\cs\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\bin\Debug\netcoreapp3.1\CustomerMaintenance.exe +C:\Users\User\Documents\cs\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\bin\Debug\netcoreapp3.1\CustomerMaintenance.deps.json +C:\Users\User\Documents\cs\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\bin\Debug\netcoreapp3.1\CustomerMaintenance.runtimeconfig.json +C:\Users\User\Documents\cs\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\bin\Debug\netcoreapp3.1\CustomerMaintenance.runtimeconfig.dev.json +C:\Users\User\Documents\cs\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\bin\Debug\netcoreapp3.1\CustomerMaintenance.dll +C:\Users\User\Documents\cs\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\bin\Debug\netcoreapp3.1\CustomerMaintenance.pdb +C:\Users\User\Documents\cs\Exercise Starts\Chapter 12\CustomerMaintenance\CustomerMaintenance\obj\Debug\netcoreapp3.1\CustomerMaintenance.genruntimeconfig.cache diff --git a/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.csproj.GenerateResource.cache b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.csproj.GenerateResource.cache new file mode 100644 index 0000000..22209f4 Binary files /dev/null and b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.csproj.GenerateResource.cache differ diff --git a/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.designer.deps.json b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.designer.deps.json new file mode 100644 index 0000000..9bb9f82 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.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/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.designer.runtimeconfig.json b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.designer.runtimeconfig.json new file mode 100644 index 0000000..fdc9c5f --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.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/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.dll b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.dll new file mode 100644 index 0000000..44e7090 Binary files /dev/null and b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.dll differ diff --git a/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.frmAddCustomer.resources b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.frmAddCustomer.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.frmAddCustomer.resources differ diff --git a/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.frmCustomers.resources b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.frmCustomers.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.frmCustomers.resources differ diff --git a/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.genruntimeconfig.cache b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.genruntimeconfig.cache new file mode 100644 index 0000000..bfe45b8 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.genruntimeconfig.cache @@ -0,0 +1 @@ +2db253a0fcc357e7ff82e44e85d626576a7b31aeb85235c118ac4615d8226681 diff --git a/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.pdb b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.pdb new file mode 100644 index 0000000..709773b Binary files /dev/null and b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/CustomerMaintenance.pdb differ diff --git a/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/apphost.exe b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/apphost.exe new file mode 100644 index 0000000..6ac5517 Binary files /dev/null and b/customer_maintenance/CustomerMaintenance/obj/Debug/netcoreapp3.1/apphost.exe differ diff --git a/customer_maintenance/CustomerMaintenance/obj/project.assets.json b/customer_maintenance/CustomerMaintenance/obj/project.assets.json new file mode 100644 index 0000000..987b6b5 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/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\\Exercise Starts\\Chapter 12\\CustomerMaintenance\\CustomerMaintenance\\CustomerMaintenance.csproj", + "projectName": "CustomerMaintenance", + "projectPath": "C:\\Users\\User\\Documents\\cs\\Exercise Starts\\Chapter 12\\CustomerMaintenance\\CustomerMaintenance\\CustomerMaintenance.csproj", + "packagesPath": "C:\\Users\\User\\.nuget\\packages\\", + "outputPath": "C:\\Users\\User\\Documents\\cs\\Exercise Starts\\Chapter 12\\CustomerMaintenance\\CustomerMaintenance\\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/customer_maintenance/CustomerMaintenance/obj/project.nuget.cache b/customer_maintenance/CustomerMaintenance/obj/project.nuget.cache new file mode 100644 index 0000000..8e4a481 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "Tb1ZcogrngwcJXKB45nYVRA86/RGpF/pUQzWji87SH+AhsRNS5ucWrqjZtWvYcdYfHjK1hoLIJ6Cd/mGGQ4R+w==", + "success": true, + "projectFilePath": "C:\\Users\\User\\Documents\\cs\\Exercise Starts\\Chapter 12\\CustomerMaintenance\\CustomerMaintenance\\CustomerMaintenance.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file -- cgit 1.4.1