trunk/src/LythumOSL.Indigo/Classification/ClassificatorManager.cs
/// <summary>
/// Creates generic type DataGridColumn and binds it
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="cd"></param>
/// <returns></returns>
Creates generic type DataGridColumn and binds it
Creates generic type DataGridColumn and binds it
public static DataGridColumn CreateDataGridColumn<T> (IColumnDesc cd)
			where T : DataGridColumn, new ()
		{
			DataGridColumn column = new T ();
			if (column is DataGridBoundColumn && cd is Binding)
			{
				((DataGridBoundColumn)column).Binding = (Binding)cd;
			}
			return column;
		}
public static DataGridColumn CreateDataGridColumn < T > ( IColumnDesc cd ) where T : DataGridColumn , new ( ) { DataGridColumn column = new T ( ) ; if ( column is DataGridBoundColumn && cd is Binding ) { ( ( DataGridBoundColumn ) column ) . Binding = ( Binding ) cd ; } return column ; }
Creates generic type DataGridColumn and binds it
Creates generic type DataGridColumn and binds it
None
cd
IColumnDesc
None
typeparam
None