Exemplo n.º 1
0
 private string getBannerAds(DataRow data, string[] scriptID_value, int[] size_value, int indicate, bool IsMulti)
 {
     //GenCode gc = new GenCode(scriptID_value[0], scriptID_value[1], scriptID_value[2], scriptID_value[3], _Url, _Ext);
     //return gc.genBannerCode(int.Parse(data["IDContent"].ToString()), size_value[1], size_value[0], data["StaticPath"].ToString(), data["DynamicPath"].ToString(), indicate);
     GenCode gc = new GenCode(scriptID_value, _Url, _Ext);
     gc.IsMulti = IsMulti;
     return gc.genBannerCode(int.Parse(data["IDContent"].ToString()), data["StaticPath"].ToString(), data["DynamicPath"].ToString(), int.Parse(data["width"].ToString()), int.Parse(data["height"].ToString()), indicate);
 }
Exemplo n.º 2
0
 private string getBannerAds(string NamePosition, string RowID, string[] scriptID_value,bool IsLastRow)
 {
     DataRow[] row_IDs = tabSchedule.Select("ID=" + RowID);
     GenCode gc = new GenCode(scriptID_value, _Url, _Ext);
     int[] Size_Ad = getSizeBanner(row_IDs[0], scriptID_value[3]);
     return gc.genBannerCode(Convert.ToInt32(row_IDs[0]["IDContent"].ToString()), Size_Ad[0], Size_Ad[1], row_IDs[0]["StaticPath"].ToString(), row_IDs[0]["DynamicPath"].ToString(), IsLastRow);
 }
Exemplo n.º 3
0
 private string GenBannerCode(string NamePosition, string RowID, int IDContentType, int[] size_value, string[] scriptID_value, int indicate)
 {
     DataRow[] row_IDs = tabSchedule.Select("ID=" + RowID);
     GenCode gc = new GenCode(scriptID_value, _Url, _Ext);
     return gc.genBannerCode(int.Parse(row_IDs[0]["IDContent"].ToString()), row_IDs[0]["StaticPath"].ToString(), row_IDs[0]["DynamicPath"].ToString(), int.Parse(row_IDs[0]["width"].ToString()), int.Parse(row_IDs[0]["height"].ToString()), indicate);
     //return string.Format(GlobalConst.DECLARCE_BANNER_SINGLE, NamePosition, getBanner(RowID, scriptID_value, size_value, indicate), size_value[0], size_value[1], indicate);
 }
Exemplo n.º 4
0
 private string getBanner(DataRow data)
 {
     GenCode gc = new GenCode(_Scripting[0],_Scripting[1],_Scripting[2],_Url,_Ext);
     return gc.genBannerCode(int.Parse(data["IDContent"].ToString()),_Size[0],_Size[1],data["StaticPath"].ToString(), data["DynamicPath"].ToString());
 }