private void InitializeConfiguration(string applicationName)
{
this.fileName = applicationName + ".config";
this.isoStore = IsolatedStorageFile.GetStore(IsolatedStorageScope.User | IsolatedStorageScope.Assembly, null, null);
string[] storeFileNames;
storeFileNames = this.isoStore.GetFileNames(this.fileName);
foreach(string storeFile in storeFileNames)
{
if (storeFile == this.fileName)
{
//Create isoStorage StreamReader
StreamReader streamReader = new StreamReader(new IsolatedStorageFileStream(this.fileName, FileMode.Open, this.isoStore));
this.xml = new XmlDocument();
this.xml.Load(streamReader);
this.xmlOriginal = new XmlDocument();
this.xmlOriginal.LoadXml(this.xml.OuterXml);
streamReader.Close();
}
}
}