Пример #1
0
        private StringBuilder getScript(char type)
        {
            StringBuilder sb     = new StringBuilder("");
            string        source = string.Format(URL_SCRIPT, host, site, type);


            DownloadFile df = new DownloadFile(source, "");

            sb = df.DownloadTextFileToMemory();
            return(sb);
        }
Пример #2
0
        private string getCurrentVersion()
        {
            string v      = "0";
            string source = string.Format(URL_VERSION, host, site);


            DownloadFile  df      = new DownloadFile(source, "");
            StringBuilder version = df.DownloadTextFileToMemory();

            v = version.ToString();

            return(v);
        }