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

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

            rtn.Value = value;
            rtn.Text  = value;
            return(rtn);
        }
예제 #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);
        }
예제 #7
0
 //----------------------------------------------------------------------------------------------------
 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
     }
 }