public static string readComments()
 {
     if (UpdateProgress.url.StartsWith("http://", StringComparison.OrdinalIgnoreCase))
     {
         UpdateProgress.inidataArray = UpdateProgress.formattedIni(ReadIniClass.readIni(UpdateProgress.url + "/UpdateList.ini"));
         return(UpdateProgress.inidataArray[2].Split('=')[1]);
     }
     if (!UpdateProgress.url.StartsWith("ftp://", StringComparison.OrdinalIgnoreCase))
     {
         return("");
     }
     UpdateProgress.inidataArray = UpdateProgress.formattedIni(ReadIniClass.readIni(UpdateProgress.url + "/UpdateList.ini", UpdateProgress.ftpuser, UpdateProgress.ftppw));
     return(UpdateProgress.inidataArray[2].Split('=')[1]);
 }
 public static bool needUpdate(string url_, string ftpuser_, string ftppw_)
 {
     UpdateProgress.url     = url_;
     UpdateProgress.ftpuser = ftpuser_;
     UpdateProgress.ftppw   = ftppw_;
     if (!System.IO.File.Exists("local.ver"))
     {
         System.IO.File.WriteAllText("local.ver", UpdateProgress.Encrypt("Version=0"));
     }
     try
     {
         if (UpdateProgress.url.StartsWith("http://", StringComparison.OrdinalIgnoreCase))
         {
             return(int.Parse(UpdateProgress.Decrypt(System.IO.File.ReadAllText("local.ver").Replace("\r\n", "")).Split('=')[1]) != int.Parse(UpdateProgress.formattedIni(ReadIniClass.readIni(UpdateProgress.url + "/UpdateList.ini"))[1].Split('=')[1]));
         }
         if (UpdateProgress.url.StartsWith("ftp://", StringComparison.OrdinalIgnoreCase))
         {
             return(int.Parse(UpdateProgress.Decrypt(System.IO.File.ReadAllText("local.ver").Replace("\r\n", "")).Split('=')[1]) != int.Parse(UpdateProgress.formattedIni(ReadIniClass.readIni(UpdateProgress.url + "/UpdateList.ini", UpdateProgress.ftpuser, UpdateProgress.ftppw))[1].Split('=')[1]));
         }
     }
     catch (Exception ex)
     {
         int num = (int)MessageBox.Show(ex.Message);
         Environment.Exit(0);
     }
     return(false);
 }