Example #1
0
        public static WebPatern OpenFromFile(string fileaddress)
        {
            WebPatern wr = new WebPatern();

            MiMFa_IOService.OpenDeserializeFile(fileaddress, ref wr);
            return(wr);
        }
Example #2
0
 public MiMFa_Table FetchSampleTable(WebPatern patern)
 {
     if (patern.Paterns.Count == 0 && patern.DefaultPatern != null)
     {
         return(SampleTable = GetTable(patern.DefaultPatern, MiMFa_XMLElement.GetCopy(patern.DefaultPatern.SampleHTMLElements)));
     }
     return(SampleTable);
 }
Example #3
0
 public void AppendInFetchQueue(WebPatern patern, bool start = false)
 {
     foreach (var item in patern.FetchList)
     {
         FetchQueue.Enqueue(item);
     }
     if (start)
     {
         StartFetch(false);
     }
 }
Example #4
0
        public void SetPatern(WebPatern patern)
        {
            fetch_webpatern       = patern;
            FetchQueue            = new Queue <FetchPatern>();
            FetchedSuccessList    = new List <FetchPatern>();
            FetchedErrorList      = new List <FetchPatern>();
            NumberOfAllTableRows  = 0;
            NumberOfLastTableRows = 0;

            AppendInFetchQueue(patern, false);
        }
Example #5
0
 public void FromFile(string fileaddress)
 {
     fetch_webpatern = OpenFromFile(fileaddress);
 }
Example #6
0
 public static void SaveInFile(WebPatern wr, string fileaddress)
 {
     MiMFa_IOService.SaveSerializeFile(fileaddress, wr);
 }
Example #7
0
 public void StartFetch(WebPatern patern)
 {
     SetPatern(patern);
     StartFetch(false);
 }