)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
Integrated Applications Programming Company
Home » Code Library » ServiceAndroidApplicationTrekCountry (Ia.Statistics.Wa.Models.Ui)

Public general use code classes and xml files that we've compiled and used over the years:

    1: using System;
    2: using System.Configuration;
    3: using System.Web;
    4:  
    5: namespace Ia.Statistics.Wa.Models.Ui
    6: {
    7:     ////////////////////////////////////////////////////////////////////////////
    8:  
    9:     /// <summary publish="true">
   10:     ///
   11:     /// </summary>
   12:     /// 
   13:     /// <remarks> 
   14:     /// Copyright © 2006-2025 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   15:     ///
   16:     /// This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
   17:     /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
   18:     ///
   19:     /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
   20:     /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
   21:     /// 
   22:     /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
   23:     /// 
   24:     /// Copyright notice: This notice may not be removed or altered from any source distribution.
   25:     /// </remarks> 
   26:     public class ServiceAndroidApplicationTrekCountry
   27:     {
   28:         /// <summary/>
   29:         public string Iso3 { get; set; }
   30:  
   31:         /// <summary/>
   32:         public string ApplicationNameDictionaryEnglish { get; set; }
   33:  
   34:         /// <summary/>
   35:         public string ApplicationUrl { get; set; }
   36:  
   37:         /// <summary/>
   38:         public string HiResIconImageUrl { get; set; }
   39:  
   40:         /*
   41:         ////////////////////////////////////////////////////////////////////////////
   42: 
   43:         /// <summary>
   44:         ///
   45:         /// </summary>
   46:         public static void Repeater_ItemDataBound(System.Web.UI.Page page, object sender, RepeaterItemEventArgs e)
   47:         {
   48:             ListItemType itemType = e.Item.ItemType;
   49: 
   50:             if (itemType == ListItemType.Item || itemType == ListItemType.AlternatingItem)
   51:             {
   52:                 Ia.Statistics.Wa.Model.Ui.ServiceAndroidApplicationTrekCountry country = (Ia.Statistics.Wa.Model.Ui.ServiceAndroidApplicationTrekCountry)e.Item.DataItem;
   53: 
   54:                 for (int i = 0; i < e.Item.Controls.Count; i++)
   55:                 {
   56:                     try
   57:                     {
   58:                         if (e.Item.Controls[i].GetType().ToString() == "System.Web.UI.WebControls.Label")
   59:                         {
   60:                             Label l = (Label)e.Item.Controls[i];
   61: 
   62:                             if (l.ID == "applicationNameDictionaryEnglishLabel") l.Text = country.ApplicationNameDictionaryEnglish;
   63:                         }
   64:                         else if (e.Item.Controls[i].GetType().ToString() == "System.Web.UI.WebControls.HyperLink")
   65:                         {
   66:                             System.Web.UI.WebControls.HyperLink hl = (System.Web.UI.WebControls.HyperLink)e.Item.Controls[i];
   67: 
   68:                             if (hl.ID == "hyperLink")
   69:                             {
   70:                                 hl.NavigateUrl = country.ApplicationUrl;
   71:                                 hl.ImageUrl = country.HiResIconImageUrl;
   72: 
   73:                                 hl.Text = country.ApplicationNameDictionaryEnglish;
   74:                             }
   75:                             else if (hl.ID == "applicationNameDictionaryEnglishHyperLink")
   76:                             {
   77:                                 hl.NavigateUrl = country.ApplicationUrl;
   78: 
   79:                                 hl.Text = country.ApplicationNameDictionaryEnglish;
   80:                             }
   81:                         }
   82:                     }
   83:                     catch { }
   84:                 }
   85:             }
   86:         }
   87:         */
   88:  
   89:         ////////////////////////////////////////////////////////////////////////////
   90:         ////////////////////////////////////////////////////////////////////////////
   91:     }
   92: }