From 2e58b7d4a477a59afb355bbef868b17df18039c7 Mon Sep 17 00:00:00 2001
From: Brandon Rodriguez <brodriguez8774@mail.kvcc.edu>
Date: Mon, 14 Sep 2015 10:40:22 -0400
Subject: [PATCH] Creates initial classes.

---
 assignment1/CSVProcessor.cs       | 92 +++++++++++++++++++++++++++++++
 assignment1/UserInterface.cs      | 58 +++++++++++++++++++
 assignment1/WineItem.cs           | 88 +++++++++++++++++++++++++++++
 assignment1/WineItemCollection.cs | 38 +++++++++++++
 assignment1/assignment1.csproj    |  4 ++
 5 files changed, 280 insertions(+)
 create mode 100644 assignment1/CSVProcessor.cs
 create mode 100644 assignment1/UserInterface.cs
 create mode 100644 assignment1/WineItem.cs
 create mode 100644 assignment1/WineItemCollection.cs

diff --git a/assignment1/CSVProcessor.cs b/assignment1/CSVProcessor.cs
new file mode 100644
index 0000000..3c69fc2
--- /dev/null
+++ b/assignment1/CSVProcessor.cs
@@ -0,0 +1,92 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.IO;
+
+namespace assignment1
+{
+    class CSVProcessor
+    {
+        #region Variables
+
+        // Input Variables
+        private int wineIDInt;
+        private string wineDescriptionString;
+        private string wineSizeString;
+
+        // Working Variables
+        private bool hasLoadedBool = false;
+        private int wineListSizeInt;
+
+        private StreamReader inputFile;
+
+        #endregion
+
+
+
+        #region Constructors
+
+        public CSVProcessor()
+        {
+
+        }
+
+        #endregion
+
+
+
+        #region Properties
+
+        public int WineID
+        {
+            get
+            {
+                return wineIDInt;
+            }
+        }
+
+        public string WineDescription
+        {
+            get
+            {
+                return wineDescriptionString;
+            }
+        }
+
+        public string WineSize
+        {
+            get
+            {
+                return wineSizeString;
+            }
+        }
+
+        #endregion
+
+
+
+        #region Methods
+
+        private void ReadFile()
+        {
+            try
+            {
+
+                while (inputFile.EndOfStream == false)
+                {
+
+
+                    wineListSizeInt++;
+                }
+            }
+            catch (Exception errmsg)
+            {
+                Console.WriteLine("ERROR" + Environment.NewLine + errmsg);
+            }
+        }
+
+        #endregion
+    }
+}
diff --git a/assignment1/UserInterface.cs b/assignment1/UserInterface.cs
new file mode 100644
index 0000000..5037536
--- /dev/null
+++ b/assignment1/UserInterface.cs
@@ -0,0 +1,58 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace assignment1
+{
+    class UserInterface
+    {
+        #region Variables
+
+        private bool runProgramBool = true;
+
+        #endregion
+
+
+
+        #region Constructors
+
+        public UserInterface()
+        {
+            
+        }
+
+        #endregion
+
+
+
+        #region Properties
+
+        #endregion
+
+
+
+        #region Methods
+
+        private void DisplayMainMenu()
+        {
+            Console.WriteLine("Choose an Option:" + Environment.NewLine +
+                "1) Load Wine List" + Environment.NewLine +
+                "2) Print Wine List" + Environment.NewLine +
+                "3) Search for Item" + Environment.NewLine +
+                "4) Add New Item to List" + Environment.NewLine +
+                "5) Exit" + Environment.NewLine);
+        }
+
+        private void RunMenu()
+        {
+            while (runProgramBool == true)
+            {
+
+            }
+        }
+
+        #endregion
+    }
+}
diff --git a/assignment1/WineItem.cs b/assignment1/WineItem.cs
new file mode 100644
index 0000000..e21fad9
--- /dev/null
+++ b/assignment1/WineItem.cs
@@ -0,0 +1,88 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace assignment1
+{
+    class WineItem
+    {
+        #region Variables
+
+        private int wineIDInt;
+        private string wineDescriptionString;
+        private string wineSizeString;
+
+        #endregion
+
+
+
+        #region Constructors
+
+        public WineItem()
+        {
+
+        }
+
+        public WineItem(int wineID, string wineDescription, string wineSize)
+        {
+            WineID = wineID;
+            WineDescription = wineDescription;
+            WineSize = wineSize;
+        }
+
+        #endregion
+
+
+
+        #region Properties
+
+        public int WineID
+        {
+            set
+            {
+                wineIDInt = value;
+            }
+            
+            get
+            {
+                return this.wineIDInt;
+            }
+        }
+
+        public string WineDescription
+        {
+            set
+            {
+                wineDescriptionString = value;
+            }
+
+            get
+            {
+                return this.wineDescriptionString;
+            }
+        }
+
+        public string WineSize
+        {
+            set
+            {
+                wineSizeString = value;
+            }
+
+            get
+            {
+                return this.wineSizeString;
+            }
+        }
+
+        #endregion
+
+
+
+        #region Methods
+
+        #endregion
+    }
+}
diff --git a/assignment1/WineItemCollection.cs b/assignment1/WineItemCollection.cs
new file mode 100644
index 0000000..4da39ad
--- /dev/null
+++ b/assignment1/WineItemCollection.cs
@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace assignment1
+{
+    class WineItemCollection
+    {
+        #region Variables
+
+        #endregion
+
+
+
+        #region Constructors
+
+        public WineItemCollection()
+        {
+
+        }
+
+        #endregion
+
+
+
+        #region Properties
+
+        #endregion
+
+
+
+        #region Methods
+
+        #endregion
+    }
+}
diff --git a/assignment1/assignment1.csproj b/assignment1/assignment1.csproj
index ffaa860..8b60dcb 100644
--- a/assignment1/assignment1.csproj
+++ b/assignment1/assignment1.csproj
@@ -41,8 +41,12 @@
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
+    <Compile Include="CSVProcessor.cs" />
     <Compile Include="Program.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
+    <Compile Include="UserInterface.cs" />
+    <Compile Include="WineItem.cs" />
+    <Compile Include="WineItemCollection.cs" />
   </ItemGroup>
   <ItemGroup>
     <None Include="App.config" />
-- 
GitLab