public bool GLLoad(GLItem item, GLSubItem subItem, GlacialList listctrl)
        {
            this.Format = DateTimePickerFormat.Long;
            try
            {
                m_item = item;
                m_subItem = subItem;
                m_Parent = listctrl;

                this.Text = subItem.Text;

                //this.Value = subItem.Text;
            }
            catch ( Exception ex )
            {
                Debug.WriteLine( ex.ToString() );

                this.Text = DateTime.Now.ToString();
            }

            return true;
        }
示例#2
0
        // populate this control however you wish with item
        public bool GLLoad( GLItem item, GLSubItem subItem, GlacialList listctrl )
        {
            // set the styles you want for this
            this.BorderStyle = BorderStyle.None;
            this.AutoSize = false;

            m_item = item;
            m_subItem = subItem;
            m_Parent = listctrl;

            this.Text = subItem.Text;

            return true;					// we don't do any heavy processing in this ctrl so we just return true
        }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="parent"></param>
 public GLColumnCollection( GlacialList parent )
 {
     this.Parent = parent;
 }
示例#4
0
        public bool GLLoad(GLItem item, GLSubItem subItem, GlacialList listctrl)
        {
            m_item = item;
            m_subItem = subItem;
            m_Parent = listctrl;

            this.Text = subItem.Text;

            this.Items.Add( "i1" );
            this.Items.Add( "i2" );
            this.Items.Add( "i3" );

            return true;
        }