Пример #1
0
        private void LoadPropetyTypes()
        {
            List <PROPERTY_TYPE> ptypes = _basicService.LoadAllPROPERTY_TYPE(_businessParam).OrderBy(c => c.NAME).ToList();

            ptypes.Insert(0, new PROPERTY_TYPE {
                NAME = "---", ID_PROPERTY_TYPE = -1
            });
            cboPropertyType.DataSource    = ptypes;
            cboPropertyType.DisplayMember = "NAME";
            cboPropertyType.ValueMember   = "ID_PROPERTY_TYPE";
        }