Guest User

Untitled

a guest
May 24th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Parser[] iskalniki = {new GoogleWeb(), new GooglePic(), new GoogleScholar(),
  2. new NajdiWeb(), new NajdiSlike(), new NajdiVideo(), new NajdiMaps()};
  3. if (args.GetLength(0) == 0)
  4. {
  5. Console.WriteLine("Podaj iskalni pojem!");
  6. return;
  7. }
  8. string arg = args[0];
  9. Console.WriteLine("Parameter: " + arg);
  10. foreach (Parser p in iskalniki)
  11. {
  12. Iskalnik res = new Iskalnik();
  13. res.results = new List<Zadetek>();
  14. p.Parse(arg, ref res);
  15. rezultati.Add(res);
  16. }
Add Comment
Please, Sign In to add comment