diff --git a/assignment1/CSVProcessor.cs b/assignment1/CSVProcessor.cs new file mode 100644 index 0000000000000000000000000000000000000000..3c69fc2e8b1e51dcd31bb14d8c27ef1358af4a2e --- /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 0000000000000000000000000000000000000000..5037536fd15e5f4471105f3a93a476569e8f9905 --- /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 0000000000000000000000000000000000000000..e21fad969cbf1a699df25434924f827455dd5d91 --- /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 0000000000000000000000000000000000000000..4da39ad63d770222a10c8fa6458bfd5d8293dc98 --- /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 ffaa860b4c784b3c885e501ef256567738b12d1e..8b60dcb22290d007cad2288547274c31e2fd2ba4 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" />