Example #1
0
 /// <summary>
 /// Checks if an update is needed
 /// </summary>
 /// <returns></returns>
 public static UpdateReturn CheckForUpdate()
 {
     try
     {
         UpdateReturn xReturn = new UpdateReturn();
         StreamReader x       = X360.Other.VariousFunctions.GetWebPageResponse("http://skunkiebutt.com/ProductCheck.php?product=X360&command=read");
         string       version = x.ReadLine();
         string       url     = x.ReadLine();
         string       notes   = x.ReadLine();
         x.Dispose();
         xReturn.reachedserver = true;
         if (!(xReturn.needsup = (version != Build)))
         {
             return(xReturn);
         }
         xReturn.newvers = version;
         xReturn.link    = url;
         xReturn.notes   = notes;
         return(xReturn);
     }
     catch { return(new UpdateReturn()); }
 }
Example #2
0
 /// <summary>
 /// Checks if an update is needed
 /// </summary>
 /// <returns></returns>
 public static UpdateReturn CheckForUpdate()
 {
     try
     {
         UpdateReturn xReturn = new UpdateReturn();
         StreamReader x = X360.Other.VariousFunctions.GetWebPageResponse("http://skunkiebutt.com/ProductCheck.php?product=X360&command=read");
         string version = x.ReadLine();
         string url = x.ReadLine();
         string notes = x.ReadLine();
         x.Dispose();
         xReturn.reachedserver = true;
         if (!(xReturn.needsup = (version != Build)))
             return xReturn;
         xReturn.newvers = version;
         xReturn.link = url;
         xReturn.notes = notes;
         return xReturn;
     }
     catch { return new UpdateReturn(); }
 }