diff --git a/SingsALot/App.config b/SingsALot/App.config new file mode 100644 index 0000000..eb51eb6 --- /dev/null +++ b/SingsALot/App.config @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SingsALot/App.xaml b/SingsALot/App.xaml new file mode 100644 index 0000000..f3453ac --- /dev/null +++ b/SingsALot/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/SingsALot/App.xaml.cs b/SingsALot/App.xaml.cs new file mode 100644 index 0000000..50c72e6 --- /dev/null +++ b/SingsALot/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 SingsALot +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/SingsALot/Classes/UserSettings.cs b/SingsALot/Classes/UserSettings.cs new file mode 100644 index 0000000..c758f09 --- /dev/null +++ b/SingsALot/Classes/UserSettings.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Xml.Serialization; + +namespace SingsALot.Classes +{ + public class UserSettings + { + public string controllerName { get; set; } + public string songsLocationPath { get; set; } + + public void Save(string filename) + { + using (StreamWriter sw = new StreamWriter(filename)) + { + XmlSerializer xmls = new XmlSerializer(typeof(UserSettings)); + xmls.Serialize(sw, this); + } + } + public UserSettings Read(string filename) + { + using (StreamReader sw = new StreamReader(filename)) + { + XmlSerializer xmls = new XmlSerializer(typeof(UserSettings)); + return xmls.Deserialize(sw) as UserSettings; + } + } + } + +} diff --git a/SingsALot/MainWindow.xaml b/SingsALot/MainWindow.xaml new file mode 100644 index 0000000..55c5842 --- /dev/null +++ b/SingsALot/MainWindow.xaml @@ -0,0 +1,18 @@ + + +