示例#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();
     }
 }
示例#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);
     }
 }
示例#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>()
         {
         }
     }
     ;
 }