コード例 #1
0
        //-----------------------------------
        private void m_lnkAddColumn_LinkClicked(object sender, EventArgs e)
        {
            CColumnEQSimple col = new CColumnEQSimple();

            col.DataType = typeof(string);
            CItemColumnSimple item = new CItemColumnSimple(col);

            m_wndListeColumns.AddItem(item, true);
        }
コード例 #2
0
        //--------------------------------------------------------------
        protected override CResultAErreur MyInitChamps(CCustomizableListItem item)
        {
            CResultAErreur result = base.MyInitChamps(item);

            if (!result)
            {
                return(result);
            }
            CItemColumnSimple itemSort = item as CItemColumnSimple;

            if (itemSort != null)
            {
                m_txtColName.Text           = itemSort.ColumnSimple.ColumnName;
                m_cmbDataType.SelectedValue = itemSort.ColumnSimple.DataType;
            }
            return(result);
        }
コード例 #3
0
        //--------------------------------------------------------------
        protected override CResultAErreur MyMajChamps()
        {
            CResultAErreur result = base.MyMajChamps();

            if (!result)
            {
                return(result);
            }
            CItemColumnSimple item = CurrentItem as CItemColumnSimple;

            if (item != null)
            {
                item.ColumnSimple.ColumnName = m_txtColName.Text;
                if (m_cmbDataType.SelectedValue is Type)
                {
                    item.ColumnSimple.DataType = m_cmbDataType.SelectedValue as Type;
                }
            }
            return(result);
        }