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

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

    1: using System.Collections.Generic;
    2:  
    3: namespace Ia.Learning.Cl.Models.Ui
    4: {
    5:     ////////////////////////////////////////////////////////////////////////////
    6:  
    7:     /// <summary publish="true">
    8:     ///
    9:     /// </summary>
   10:     /// 
   11:     /// <remarks> 
   12:     /// Copyright © 2006-2025 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 abstract class Default
   25:     {
   26:         ////////////////////////////////////////////////////////////////////////////
   27:  
   28:         /// <summary>
   29:         ///
   30:         /// </summary>
   31:         public Default()
   32:         {
   33:         }
   34:  
   35:         /*
   36:         ////////////////////////////////////////////////////////////////////////////
   37: 
   38:         /// <summary>
   39:         ///
   40:         /// </summary>
   41:         public static void Repeater_ItemDataBound(Page page, object sender, RepeaterItemEventArgs e, string moeBookId)
   42:         {
   43:             string senderId;
   44:             Repeater repeater;
   45:             ListItemType itemType = e.Item.ItemType;
   46:             Ia.Learning.Cl.Model.MoeBook moeBook;
   47: 
   48:             repeater = (Repeater)sender;
   49:             senderId = repeater.ID;
   50: 
   51:             moeBook = null;
   52: 
   53:             switch (senderId)
   54:             {
   55:                 case "levelRepeater":
   56:                     {
   57:                         moeBook = (e.Item.DataItem as Ia.Learning.Cl.Model.MoeBook);
   58: 
   59:                         break;
   60:                     }
   61:                 case "gradeRepeater":
   62:                     {
   63:                         moeBook = (e.Item.DataItem as Ia.Learning.Cl.Model.MoeBook);
   64: 
   65:                         break;
   66:                     }
   67:                 case "periodRepeater":
   68:                     {
   69:                         moeBook = (e.Item.DataItem as Ia.Learning.Cl.Model.MoeBook);
   70: 
   71:                         break;
   72:                     }
   73:                 case "courseRepeater":
   74:                     {
   75:                         moeBook = (e.Item.DataItem as Ia.Learning.Cl.Model.MoeBook);
   76: 
   77:                         break;
   78:                     }
   79:                 default:
   80:                     {
   81:                         break;
   82:                     }
   83:             }
   84: 
   85:             if (itemType == ListItemType.Item || itemType == ListItemType.AlternatingItem)
   86:             {
   87:                 for (int i = 0; i < e.Item.Controls.Count; i++)
   88:                 {
   89:                     try
   90:                     {
   91:                         if (e.Item.Controls[i].GetType().ToString() == "System.Web.UI.WebControls.Label")
   92:                         {
   93:                             Label l = (Label)e.Item.Controls[i];
   94: 
   95:                         }
   96:                         else if (e.Item.Controls[i].GetType().ToString() == "System.Web.UI.WebControls.HyperLink")
   97:                         {
   98:                             HyperLink hl = (HyperLink)e.Item.Controls[i];
   99: 
  100:                             if (hl.ID == "courseNamePdfUrlHyperLink")
  101:                             {
  102:                                 hl.Text = moeBook.ArabicName;
  103:                                 hl.NavigateUrl = moeBook.PdfUrl;
  104:                             }
  105:                             else if (hl.ID == "courseImageUrlHyperLink")
  106:                             {
  107:                                 hl.Text = moeBook.ArabicName;
  108:                                 hl.ImageUrl = moeBook.ImageUrl;
  109:                                 hl.NavigateUrl = moeBook.PdfUrl;
  110:                             }
  111:                             else if (hl.ID == "levelArabicNameHyperLink")
  112:                             {
  113:                                 hl.Text = moeBook.ArabicName;
  114:                                 hl.NavigateUrl = moeBook.LevelUrl;
  115:                                 hl.Enabled = moeBook.Id != moeBookId;
  116:                             }
  117:                             else if (hl.ID == "gradeArabicNameHyperLink")
  118:                             {
  119:                                 hl.Text = moeBook.ArabicName;
  120:                                 hl.NavigateUrl = moeBook.GradeUrl;
  121:                                 hl.Enabled = moeBook.Id != moeBookId;
  122:                             }
  123:                             else if (hl.ID == "periodArabicNameHyperLink")
  124:                             {
  125:                                 hl.Text = moeBook.ArabicName;
  126:                                 hl.NavigateUrl = moeBook.PeriodUrl;
  127:                                 hl.Enabled = moeBook.Id != moeBookId;
  128:                             }
  129:                         }
  130:                         else if (e.Item.Controls[i].GetType().ToString() == "System.Web.UI.WebControls.LinkButton")
  131:                         {
  132:                             LinkButton lb = (LinkButton)e.Item.Controls[i];
  133: 
  134:                             if (lb.ID == "titleLinkButton")
  135:                             {
  136:                             }
  137:                         }
  138:                     }
  139:                     catch { }
  140:                 }
  141:             }
  142:         }
  143:         */
  144:  
  145:         ////////////////////////////////////////////////////////////////////////////
  146:         ////////////////////////////////////////////////////////////////////////////
  147:     }
  148: }