//----------------------------------- 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); }
//-------------------------------------------------------------- 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); }
//-------------------------------------------------------------- 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); }