/// <summary> /// Load all the part property selection lists /// </summary> private void InitLists() { try { typeEdit.Properties.DataSource = PartService.GetPartTypes(m_session); typeEdit.Properties.DisplayMember = "Name"; typeEdit.Properties.ValueMember = "This"; identEdit.Properties.DataSource = PartService.GetPartIdentTypes(m_session); identEdit.Properties.DisplayMember = "Name"; identEdit.Properties.ValueMember = "This"; manfLookUp.Properties.DataSource = PartService.GetPartManufacturers(m_session); manfLookUp.Properties.DisplayMember = "Manufacturer"; manfLookUp.Properties.ValueMember = "This"; sflLookUp.DataSource = Scout.Core.Service <IAreaService>().GetAllShopfloorlines(m_session); sflLookUp.DisplayMember = "Label"; sflLookUp.ValueMember = "This"; routeLookUp.DataSource = Scout.Core.Service <IShopfloorService>().GetAllServiceRoutes(m_session); routeLookUp.DisplayMember = "Name"; routeLookUp.ValueMember = "This"; m_serviceCommodities = PartService.GetPartServiceCommodities(m_session); serviceCommoditySelList.Properties.DataSource = m_serviceCommodities; orgSource.DataSource = Organization.GetOrganizations(); if (m_part.ServiceCommodity != null) { modeLookup.Properties.DataSource = m_part.ServiceCommodity.PartModels; modeLookup.Properties.DisplayMember = "Model"; modeLookup.Properties.ValueMember = "This"; } LoadSerialFormats(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }