/// <summary>
 /// Its static constructor.
 /// </summary>
 static IsolatedStorageSettings()
 {
     if (!File.Exists(fullpath))
     {
         ApplicationSettings = new IsolatedStorageSettings();
     }
     else
     {
         try
         {
             using (FileStream stream = new FileStream(fullpath, FileMode.Open))
                 ApplicationSettings = (IsolatedStorageSettings) new BinaryFormatter().Deserialize(stream);
         }
         catch (Exception)
         {
             ApplicationSettings = new IsolatedStorageSettings();
         }
     }
 }
 static AppSettings()
 {
     NativeObject = IsolatedStorageSettings.ApplicationSettings;
 }