)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
Integrated Applications Programming Company
Skip Navigation LinksHome » Code Library » Default

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

Default class for TentPlay Trek UI model

    1: using System.Text;
    2:  
    3: namespace Ia.TentPlay.Cl.Model.Ui.Trek
    4: {
    5:     ////////////////////////////////////////////////////////////////////////////
    6:  
    7:     /// <summary publish="true">
    8:     /// Default class for TentPlay Trek UI model
    9:     /// </summary>
   10:     /// 
   11:     /// <remarks> 
   12:     /// Copyright © 2006-2017 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   13:     ///
   14:     /// 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
   15:     /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
   16:     ///
   17:     /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
   18:     /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
   19:     /// 
   20:     /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
   21:     /// 
   22:     /// Copyright notice: This notice may not be removed or altered from any source distribution.
   23:     /// </remarks> 
   24:     public static class Default
   25:     {
   26:         ////////////////////////////////////////////////////////////////////////////
   27:  
   28:         /// <summary>
   29:         ///
   30:         /// </summary>
   31:         public static string WebSitemapSiteMapNodeListOfAllCountriesInStringFormat()
   32:         {
   33:             string s;
   34:             StringBuilder stringBuilder;
   35:  
   36:             stringBuilder = new StringBuilder();
   37:  
   38:             foreach (var country in Ia.Cl.Model.Country.List)
   39:             {
   40:                 stringBuilder.AppendLine(@"<siteMapNode title=""" + country.Name + @""" description="""" url=""~/trek/country/" + country.Iso3 + @"/default.aspx"">");
   41:                 stringBuilder.AppendLine(@"  <siteMapNode title=""Feature"" description="""" url=""~/trek/country/" + country.Iso3 + @"/feature.aspx""/>");
   42:                 stringBuilder.AppendLine(@"</siteMapNode>");
   43:             }
   44:  
   45:             s = stringBuilder.ToString();
   46:  
   47:             s = s.Replace("'", "&#39;"); // use &#39; instead of &apos; to work 
   48:             s = s.Replace("<", "&lt;");
   49:             s = s.Replace(">", "&gt;");
   50:             s = s.Replace(" & ", " &amp;amp; ");
   51:  
   52:             s = "<pre>" + s + "</pre>";
   53:  
   54:             return s;
   55:         }
   56:  
   57:         ////////////////////////////////////////////////////////////////////////////
   58:  
   59:         /// <summary>
   60:         ///
   61:         /// </summary>
   62:         public static string ApplicationNameAndPlayStoreUrlLinkListStringFormat()
   63:         {
   64:             string s;
   65:             StringBuilder stringBuilder;
   66:  
   67:             stringBuilder = new StringBuilder();
   68:  
   69:             foreach (Ia.TentPlay.Cl.Model.Data.Trek.ApplicationInformation.Country country in Ia.TentPlay.Cl.Model.Data.Trek.ApplicationInformation.CountryList)
   70:             {
   71:                 stringBuilder.AppendLine(@" <a href=""" + country.ApplicationUrl + @"""/>" + country.Name + "</a> ");
   72:             }
   73:  
   74:             return stringBuilder.ToString();
   75:         }
   76:  
   77:         ////////////////////////////////////////////////////////////////////////////
   78:     }
   79: }