private void LoadPhotoList()
 {
     try
     {
         OtherFunctions obj      = new OtherFunctions();
         DataSet        ds       = obj.GetImageListSlideIndex("ImageSlideIndex", Globals.AgentCatID);
         DataListHelper dlHelper = new DataListHelper();
         if (ds.Tables.Count > 0)
         {
             dlHelper.FillData(DataListImage, ds);
         }
     }
     catch { }
 }
Exemplo n.º 2
0
 private void LoadPhotoList()
 {
     try
     {
         Gallery obj = new Gallery();
         DataSet ds  = obj.GetAllPhoto("GalleryPhoto", Globals.AgentCatID);
         if (ds.Tables.Count > 0)
         {
             DataListHelper dlHelper = new DataListHelper();
             dlHelper.FillData(DataListPhoto, ds);
         }
     }
     catch { }
 }
Exemplo n.º 3
0
 private void LoadPhotoList(string Lang, int ProductID)
 {
     try
     {
         Product        obj      = new Product();
         DataSet        ds       = obj.GetImageListOfProduct("ProductImage", ProductID, Globals.AgentCatID);
         DataListHelper dlHelper = new DataListHelper();
         if (ds.Tables.Count > 0)
         {
             dlHelper.FillData(DataListPhoto, ds);
         }
     }
     catch { }
 }
Exemplo n.º 4
0
 protected void ddlAlbum_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         Gallery obj     = new Gallery();
         int     AlbumID = Convert.ToInt32(ddlAlbum.SelectedValue);
         if (AlbumID != 0)
         {
             DataSet ds = obj.GetPhotoByAlbumID("GalleryPhoto", Globals.AgentCatID, AlbumID);
             if (ds.Tables.Count > 0)
             {
                 DataListHelper dlHelper = new DataListHelper();
                 dlHelper.FillData(DataListPhoto, ds);
             }
         }
         else
         {
             LoadPhotoList();
         }
     }
     catch { }
 }