Exemplo n.º 1
0
 /// <summary>
 /// Avoid deserialization duplicates by using separate method.
 /// </summary>
 public void InitDefaults()
 {
     if (string.IsNullOrEmpty(InternetDatabaseUrl))
     {
         InternetDatabaseUrl = "http://www.x360ce.com/webservices/x360ce.asmx";
     }
     if (InternetDatabaseUrls == null)
     {
         InternetDatabaseUrls = new List <string>();
     }
     if (InternetDatabaseUrls.Count == 0)
     {
         InternetDatabaseUrls.Add("http://www.x360ce.com/webservices/x360ce.asmx");
         InternetDatabaseUrls.Add("http://localhost:20360/webservices/x360ce.asmx");
     }
     if (GameScanLocations == null)
     {
         GameScanLocations = new List <string>()
         {
         }
     }
     ;
     if (string.IsNullOrEmpty(DiskId))
     {
         DiskId = Engine.BoardInfo.GetDiskId();
     }
     if (ComputerId == Guid.Empty)
     {
         ComputerId = Engine.BoardInfo.GetHashedDiskId();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Avoid deserialization duplicates by using separate method.
 /// </summary>
 public void InitDefaults()
 {
     if (string.IsNullOrEmpty(InternetDatabaseUrl))
     {
         InternetDatabaseUrl = "http://www.x360ce.com/webservices/x360ce.asmx";
     }
     if (InternetDatabaseUrls == null)
     {
         InternetDatabaseUrls = new BindingList <string>();
     }
     if (InternetDatabaseUrls.Count == 0)
     {
         InternetDatabaseUrls.Add("http://www.x360ce.com/webservices/x360ce.asmx");
         InternetDatabaseUrls.Add("http://localhost:20360/webservices/x360ce.asmx");
     }
     if (GameScanLocations == null)
     {
         GameScanLocations = new BindingList <string>()
         {
         }
     }
     ;
     if (string.IsNullOrEmpty(ComputerDisk))
     {
         ComputerDisk = Engine.BoardInfo.GetDiskId();
     }
     if (ComputerId == Guid.Empty)
     {
         ComputerId = Engine.BoardInfo.GetHashedDiskId(ComputerDisk);
     }
     if (string.IsNullOrEmpty(ProfilePath))
     {
         ProfilePath = EngineHelper.AppDataPath;
     }
     if (ProfileId == Guid.Empty)
     {
         ProfileId = Engine.Data.UserProfile.GenerateProfileId(ComputerId, EngineHelper.AppDataPath);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Avoid deserialization duplicates by using separate method.
 /// </summary>
 public void InitDefaults()
 {
     if (string.IsNullOrEmpty(InternetDatabaseUrl))
     {
         InternetDatabaseUrl = "http://www.x360ce.com/webservices/x360ce.asmx";
     }
     if (InternetDatabaseUrls == null)
     {
         InternetDatabaseUrls = new List <string>();
     }
     if (InternetDatabaseUrls.Count == 0)
     {
         InternetDatabaseUrls.Add("http://www.x360ce.com/webservices/x360ce.asmx");
         InternetDatabaseUrls.Add("http://localhost:20360/webservices/x360ce.asmx");
     }
     if (GameScanLocations == null)
     {
         GameScanLocations = new List <string>()
         {
         }
     }
     ;
 }