コード例 #1
0
        private void BindCarriers()
        {
            Carriers.Clear();
            SearchCarriers.Clear();
            IList <IntegerComboBoxModel> entity = PrepareComboBoxEntity(localSql.GetShipmentCarriers());

            if (!entity.Any())
            {
                return;
            }

            SearchCarriers.AddRange(entity);
            Carriers.AddRange(entity);

            SearchCarriers.Insert(0, new IntegerComboBoxModel {
                Value = 0, Name = "ALL"
            });
        }