Exemplo n.º 1
0
 //Return the homepage
 public String getHome()
 {
     try
     {
         homepage = home.Url;
     }
     catch (NullReferenceException)
     {
         //if not homepage is set, set to HW homepage
         home = new HomePage("http://www.hw.ac.uk", true);
         homepage = home.Url;
     }
     return homepage;
 }
Exemplo n.º 2
0
 //Extract the homepage from the xml file; set as home
 public void loadHomePage()
 {
     home = new HomePage((string)settings.Element("settings").Element("homePage").Element("url"), true);
 }