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

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

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