Professional Applications Programmers/Consultants برمجة واستشارات تطبيقات الإنترنت
Skip Navigation LinksHome » Code Library » Business

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

Koran Reference Network support functions: Business model

   1:  using System;
   2:  using System.Collections.Generic;
   3:  using System.Linq;
   4:  using System.Web;
   5:  using System.Data;
   6:  using System.Text;
   7:  using System.Xml;
   8:  using System.Xml.Linq;
   9:  using System.Text.RegularExpressions;
  10:   
  11:  namespace Ia.Islamic.Koran.Belief.Model
  12:  {
  13:      ////////////////////////////////////////////////////////////////////////////
  14:   
  15:      /// <summary publish="true">
  16:      /// Koran Reference Network support functions: Business model
  17:      /// </summary>
  18:      /// <value>
  19:      /// https://msdn.microsoft.com/en-us/library/z1hkazw7(v=vs.100).aspx
  20:      /// </value>
  21:      /// <remarks> 
  22:      /// Copyright © 2001-2015 Jasem Y. Al-Shamlan (info@ia.com.kw), Internet Applications - Kuwait. All Rights Reserved.
  23:      ///
  24:      /// 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
  25:      /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  26:      ///
  27:      /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  28:      /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  29:      /// 
  30:      /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
  31:      /// 
  32:      /// Copyright notice: This notice may not be removed or altered from any source distribution.
  33:      /// </remarks> 
  34:      public abstract class Business
  35:      {
  36:          ////////////////////////////////////////////////////////////////////////////
  37:   
  38:          /// <summary>
  39:          ///
  40:          /// </summary>
  41:          public Business()
  42:          {
  43:          }
  44:   
  45:          ////////////////////////////////////////////////////////////////////////////
  46:   
  47:          /// <summary>
  48:          /// Check the user language and return the most appropriate
  49:          /// </summary>
  50:          public static string ReturnUserLanguage(HttpRequest userLanguages)
  51:          {
  52:              string language;
  53:              
  54:              language = Ia.Cl.Model.Language.ReturnUserLanguage(userLanguages);
  55:   
  56:              if (Ia.Islamic.Cl.Model.Data.Default.UsedKoranLanguageSymbolList.Contains(language))
  57:              {
  58:              }
  59:              else language = "en";
  60:   
  61:              return language;
  62:          }
  63:   
  64:          ////////////////////////////////////////////////////////////////////////////
  65:          ////////////////////////////////////////////////////////////////////////////
  66:      }
  67:  }