Пример #1
0
        public override void PopulateList()
        {
            if (Bands == null)
                Bands = new List<BandModel>();

            Bands.Clear();

            foreach (DataRow row in _dataTable.Rows)
            {
                BandModel band = new BandModel()
                {
                    Band = row.Field<string>("Band"),
                    LowerFrequency = row.Field<double?>("Lower_Freq_MHz"),
                    UpperFrequency = row.Field<double?>("Upper_Freq_MHz")
                };

                Bands.Add(band);
            }

            _dataTable = null;
        }
Пример #2
0
        public override void PopulateList()
        {
            if (Bands == null)
            {
                Bands = new List <BandModel>();
            }

            Bands.Clear();

            foreach (DataRow row in _dataTable.Rows)
            {
                BandModel band = new BandModel()
                {
                    Band           = row.Field <string>("Band"),
                    LowerFrequency = row.Field <double?>("Lower_Freq_MHz"),
                    UpperFrequency = row.Field <double?>("Upper_Freq_MHz")
                };

                Bands.Add(band);
            }

            _dataTable = null;
        }