public static IURL CreateURL(eURLType i_Type)
        {
            IURL url;

            switch (i_Type)
            {
            case eURLType.Images:
                url = new ImagesURL();
                break;

            case eURLType.Videos:
                url = new VideosURL();
                break;

            case eURLType.Weather:
                url = new WeatherURL();
                break;

            case eURLType.Restaurants:
                url = new RestaurantsURL();
                break;

            default:
                url = new ImagesURL();
                break;
            }

            return(url);
        }
 private void button_Click(object sender, EventArgs e)
 {
     if (sender is Button)
     {
         Button   senderAsButton = sender as Button;
         eURLType type;
         if (Enum.TryParse <eURLType>(senderAsButton.Text, out type))
         {
             m_LastURLType = type;
             refreshPage();
         }
     }
 }