commit 7b3956dabe34f00e8c1d9673b1d02f3d9bd937a6 Author: Wyatt Miller Date: Sun Nov 25 14:04:14 2018 -0500 inital commit; added cake script diff --git a/.vs/DeskHubSharp/v15/.suo b/.vs/DeskHubSharp/v15/.suo new file mode 100644 index 0000000..37338e7 Binary files /dev/null and b/.vs/DeskHubSharp/v15/.suo differ diff --git a/.vs/DeskHubSharp/v15/Server/sqlite3/db.lock b/.vs/DeskHubSharp/v15/Server/sqlite3/db.lock new file mode 100644 index 0000000..e69de29 diff --git a/.vs/DeskHubSharp/v15/Server/sqlite3/storage.ide b/.vs/DeskHubSharp/v15/Server/sqlite3/storage.ide new file mode 100644 index 0000000..56758a8 Binary files /dev/null and b/.vs/DeskHubSharp/v15/Server/sqlite3/storage.ide differ diff --git a/.vs/DeskHubSharp/v15/Server/sqlite3/storage.ide-shm b/.vs/DeskHubSharp/v15/Server/sqlite3/storage.ide-shm new file mode 100644 index 0000000..6a24a5d Binary files /dev/null and b/.vs/DeskHubSharp/v15/Server/sqlite3/storage.ide-shm differ diff --git a/.vs/DeskHubSharp/v15/Server/sqlite3/storage.ide-wal b/.vs/DeskHubSharp/v15/Server/sqlite3/storage.ide-wal new file mode 100644 index 0000000..0a921dd Binary files /dev/null and b/.vs/DeskHubSharp/v15/Server/sqlite3/storage.ide-wal differ diff --git a/DeskHubSharp.sln b/DeskHubSharp.sln new file mode 100644 index 0000000..71aee3c --- /dev/null +++ b/DeskHubSharp.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.28010.2046 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DeskHubSharp", "DeskHubSharp\DeskHubSharp.csproj", "{BB23F915-21F5-4201-9021-0BE824660DBC}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {BB23F915-21F5-4201-9021-0BE824660DBC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BB23F915-21F5-4201-9021-0BE824660DBC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BB23F915-21F5-4201-9021-0BE824660DBC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BB23F915-21F5-4201-9021-0BE824660DBC}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {0C4923D9-38CA-462E-AB22-FB25D936C3BD} + EndGlobalSection +EndGlobal diff --git a/DeskHubSharp/App.config b/DeskHubSharp/App.config new file mode 100644 index 0000000..731f6de --- /dev/null +++ b/DeskHubSharp/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/DeskHubSharp/App.xaml b/DeskHubSharp/App.xaml new file mode 100644 index 0000000..8f21d3f --- /dev/null +++ b/DeskHubSharp/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/DeskHubSharp/App.xaml.cs b/DeskHubSharp/App.xaml.cs new file mode 100644 index 0000000..032d713 --- /dev/null +++ b/DeskHubSharp/App.xaml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using System.Windows; + +namespace DeskHubSharp +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/DeskHubSharp/DAL/IDataService.cs b/DeskHubSharp/DAL/IDataService.cs new file mode 100644 index 0000000..225f091 --- /dev/null +++ b/DeskHubSharp/DAL/IDataService.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CIT225FinalAppication +{ + public interface IDataService + { + List ReadAll(); + void WriteAll(List characters); + } +} diff --git a/DeskHubSharp/DAL/XmlDataService.cs b/DeskHubSharp/DAL/XmlDataService.cs new file mode 100644 index 0000000..45d7be0 --- /dev/null +++ b/DeskHubSharp/DAL/XmlDataService.cs @@ -0,0 +1,66 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Xml.Serialization; +using System.IO; + +namespace CIT225FinalAppication +{ + class XmlDataService + { + private readonly string _dataFilePath; + + public List ReadAll() + { + List Users = new List(); + XmlSerializer serializer = new XmlSerializer(typeof(List), new XmlRootAttribute("Users")); + + try + { + StreamReader reader = new StreamReader(_dataFilePath); + using (reader) + { + Users = (List)serializer.Deserialize(reader); + } + + } + catch (Exception) + { + throw; + } + + return Users; + } + + public void WriteAll(List Users) + { + XmlSerializer serializer = new XmlSerializer(typeof(List), new XmlRootAttribute("Users")); + + try + { + StreamWriter writer = new StreamWriter(_dataFilePath); + using (writer) + { + serializer.Serialize(writer, Users); + } + } + catch (Exception) + { + + throw; + } + } + + public XmlDataService() + { + + } + + public XmlDataService(string datafile) + { + _dataFilePath = datafile; + } + } +} diff --git a/DeskHubSharp/DeskHubSharp.csproj b/DeskHubSharp/DeskHubSharp.csproj new file mode 100644 index 0000000..ec23549 --- /dev/null +++ b/DeskHubSharp/DeskHubSharp.csproj @@ -0,0 +1,106 @@ + + + + + Debug + AnyCPU + {BB23F915-21F5-4201-9021-0BE824660DBC} + WinExe + DeskHubSharp + DeskHubSharp + v4.6.1 + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + 4.0 + + + + + + + + MSBuild:Compile + + + MSBuild:Compile + Designer + + + App.xaml + Code + + + + + MainWindow.xaml + Code + + + + + + + + Code + + + True + True + Resources.resx + + + True + Settings.settings + True + + + ResXFileCodeGenerator + Resources.Designer.cs + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + + + + + + + \ No newline at end of file diff --git a/DeskHubSharp/DeskHubSharp.csproj.user b/DeskHubSharp/DeskHubSharp.csproj.user new file mode 100644 index 0000000..6cbe588 --- /dev/null +++ b/DeskHubSharp/DeskHubSharp.csproj.user @@ -0,0 +1,6 @@ + + + + ProjectFiles + + \ No newline at end of file diff --git a/DeskHubSharp/MainWindow.xaml b/DeskHubSharp/MainWindow.xaml new file mode 100644 index 0000000..bd3499f --- /dev/null +++ b/DeskHubSharp/MainWindow.xaml @@ -0,0 +1,18 @@ + + +