public static void gatherFinalData(List <string> hostels, List <string> sites, List <List <string> > emails)
 {
     for (int i = 0; i < hostels.Count; i++)
     {
         Hostel newHostel = new Hostel();
         newHostel.name    = hostels[i];
         newHostel.website = sites[i];
         newHostel.emails  = emails[i];
         //Logger.writeLog(Form1.txtConsole,"HOSTEL[i]:" + newHostel.name);
         resultData.Add(newHostel);
     }
     //Logger.writeLog(Form1.txtConsole,"RESULTS RESULTS RESULTS");
     //Logger.writeLog(Form1.txtConsole,);
     foreach (Hostel hostel in resultData)
     {
         //Logger.writeLog(Form1.txtConsole,hostel.name);
         //Logger.writeLog(Form1.txtConsole,hostel.website);
     }
 }
Exemplo n.º 2
0
 private void gatherFinalData(List <string> hostels, List <string> sites, List <List <string> > emails)
 {
     for (int i = 0; i < hostels.Count; i++)
     {
         Hostel newHostel = new Hostel();
         newHostel.name    = hostels[i];
         newHostel.website = sites[i];
         newHostel.emails  = emails[i];
         resultData.Add(newHostel);
     }
     Logger.writeLog(txtConsole, "RESULTS RESULTS RESULTS");
     Logger.writeLog(txtConsole, "");
     foreach (Hostel hostel in resultData)
     {
         Logger.writeLog(txtConsole, hostel.name);
         Logger.writeLog(txtConsole, hostel.website);
         Logger.writeLog(txtConsole, "");
     }
 }