Ejemplo n.º 1
0
        internal static void Initialize()
        {
            if (Initializing)
            {
                return;
            }
            Initializing = true;

            if (!File.Exists(filterPath) || (DateTime.Now - File.GetLastWriteTime(filterPath)).TotalDays > 7)
            {
                pFileWebRequest fnr = new pFileWebRequest(filterPath, General.WEB_ROOT + "/release/filter.txt");
                fnr.Finished += delegate { LoadData(); };
                fnr.Perform();
                return;
            }

            LoadData();
        }
Ejemplo n.º 2
0
        internal void Start()
        {
            if (started)
            {
                return;
            }

            started = true;
            Status  = DownloadStatus.Starting;

            if (s_progressText != null)
            {
                s_progressText.Text = "initialising";
            }

            if (request != null)
            {
                request.Perform();
            }
        }