Exemplo n.º 1
0
 public override void LoadFromFile()
 {
     try
     {
         string path = ServerUtils.BuildPath(Server.m_Settings.AppSettingsLocation, Server.m_Settings.AppSettingsName);
         Server.m_AppSettings = XmlUtils.LoadFromFile(this, path);
     }
     finally
     {
         errorEventHandler();
     }
 }
Exemplo n.º 2
0
 public override void SaveToFile()
 {
     try
     {
         string path = ServerUtils.BuildPath(sr_Folder, m_FileName);
         XmlUtils.SaveToFile(Server.m_Settings, path);
     }
     finally
     {
         ErrorEventHandler();
     }
 }
Exemplo n.º 3
0
 public override void SaveToFile()
 {
     try
     {
         string path = ServerUtils.BuildPath(Server.m_Settings.AppSettingsLocation, Server.m_Settings.AppSettingsName);
         Server.m_AppSettings.UserName        = Server.User.m_About.Name.Split(' ')[0];
         Server.m_AppSettings.UserPicture     = Server.User.m_About.ProfileUrl;
         Server.m_AppSettings.FriendsToFollow = Server.User.SaveTrackingOnFriends();
         XmlUtils.SaveToFile(Server.AppSettings, path);
     }
     finally
     {
         errorEventHandler();
     }
 }