private void LoadData() { AMSResult <List <AttributeType> > AttributeTypes = m_AttributeService.GetAllAttributeTypes(); if (AttributeTypes.ResultType != AMSResultType.Success) { DisplayError(AttributeTypes.MessageString); return; } SetAvailableData(AttributeTypes.Result); }