public InstrumentListControl()
{
InitializeComponent();
InitListView();
if (!this.IsInDesignMode())
{
LoadList();
}
CompletedAdd += delegate( object o ) { CallAtmlAction( o, AtmlActionType.Add ); };
CompletedEdit += delegate( object o ) { CallAtmlAction( o, AtmlActionType.Edit ); };
CompletedDelete += delegate( object o ) { CallAtmlAction( o, AtmlActionType.Delete ); };
InitializeForm += delegate( Form form )
{
var atmlForm = form as ATMLForm;
if (atmlForm != null) atmlForm.CloseOnSave = false;
};
}