|
|
|
@ -1,6 +1,9 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
using System.Runtime.Serialization.Formatters.Binary;
|
|
|
|
|
using System.Runtime.Serialization.Json;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Xml;
|
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
@ -44,9 +47,6 @@ namespace TheGameExtreme.view
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void CBFr_CheckedChanged(object sender, CheckedChangedEventArgs e)
|
|
|
|
@ -70,7 +70,6 @@ namespace TheGameExtreme.view
|
|
|
|
|
Application.Current.Resources["BlackColor"] = Color.Black;
|
|
|
|
|
Application.Current.Resources["WhiteColor"] = Color.White;
|
|
|
|
|
Application.Current.Resources["SkyBlueColor"] = Color.SkyBlue;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
@ -80,16 +79,27 @@ namespace TheGameExtreme.view
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private async void SettingToHomePage(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
//serialisationSwitch();
|
|
|
|
|
await Navigation.PopAsync();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private async void SettingToHomePage(object sender, EventArgs e)
|
|
|
|
|
|
|
|
|
|
/*public void serialisationSwitch()
|
|
|
|
|
{
|
|
|
|
|
string path = @"\Documents\theme.txt";
|
|
|
|
|
FileStream fs = File.Create(path);
|
|
|
|
|
byte[] info = new UTF8Encoding(true).GetBytes(bSwitchSerialisation.ToString());
|
|
|
|
|
fs.Write(info, 0, info.Length);
|
|
|
|
|
string path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "file.xml");
|
|
|
|
|
|
|
|
|
|
if (!File.Exists(path))
|
|
|
|
|
{
|
|
|
|
|
XmlSerializer ser = new XmlSerializer(typeof(bool));
|
|
|
|
|
using (StreamWriter sw = File.CreateText(path))
|
|
|
|
|
{
|
|
|
|
|
sw.WriteLine(swTheme.IsToggled);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
await Navigation.PopAsync();
|
|
|
|
|
}
|
|
|
|
|
}*/
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|