//----------------------------------------------------------------------------------------------------
 public void Add3(string value, string text, string style)
 {
     if (this.IsClientCode)
     {
         this.Add0(GenericUIListItem.New3(value, text, style));
     }
 }
 //----------------------------------------------------------------------------------------------------
 public void Add2(string value, string text)
 {
     if (this.IsClientCode)
     {
         this.Add0(GenericUIListItem.New2(value, text));
     }
 }
 //----------------------------------------------------------------------------------------------------
 public void Add1(string value)
 {
     if (this.IsClientCode)
     {
         this.Add0(GenericUIListItem.New1(value));
     }
 }
Exemple #4
0
        //------------------------------------------------------------------------------------- Constructor --
        public static GenericUIListItem New2(string value, string text)
        {
            var rtn = new GenericUIListItem();

            rtn.Value = value;
            rtn.Text  = text;
            return(rtn);
        }
Exemple #5
0
        //------------------------------------------------------------------------------------- Constructor --
        public static GenericUIListItem New1(string value)
        {
            var rtn = new GenericUIListItem();

            rtn.Value = value;
            rtn.Text  = value;
            return(rtn);
        }
Exemple #6
0
        //------------------------------------------------------------------------------------- Constructor --
        public static GenericUIListItem New3(string value, string text, string style)
        {
            var rtn = new GenericUIListItem();

            rtn.Value = value;
            rtn.Text  = text;
            rtn.Style = style;
            return(rtn);
        }
 //----------------------------------------------------------------------------------------------------
 public void Add0(GenericUIListItem item)
 {
     if (this.IsClientCode)
     {
         this.List[this.List.Length] = item;
     }
     else
     {
         _internalList.Add(item);
         this.List = _internalList.ToArray(); // this can be improved
     }
 }