private void InitInstrumentList()
{
instrumentationListControl.DataObjectName = "ItemDescriptionReference";
instrumentationListControl.DataObjectFormType = typeof (ItemDescriptionReferenceForm);
instrumentationListControl.AddColumnData( "Instrument", "ToString()", 1.00 );
instrumentationListControl.InitColumns();
instrumentationListControl.CompletedAdd += instrumentationListControl_CompletedAdd;
instrumentationListControl.CompletedDelete += instrumentationListControl_CompletedDelete;
instrumentationListControl.InitializeForm += delegate(Form form)
{
var itemReferenceForm =
form as ItemDescriptionReferenceForm;
if (itemReferenceForm != null)
{
itemReferenceForm.DocumentType = dbDocument.DocumentType.INSTRUMENT_DESCRIPTION;
}
};
}