Ejemplo n.º 1
0
        /// <summary>
        /// Fills to grid.
        /// </summary>
        private void FillToGrid()
        {
            var type      = Convert.ToInt32(this.cboType.ComboBox.SelectedValue);
            var medicines = _medicineRepository.Get(type);
            var index     = 0;

            foreach (var item in medicines)
            {
                item.No = ++index;
            }
            this.bdsMedicines.DataSource = medicines;
            this.bdsMedicines.ResetBindings(true);
            this.grd.Update();
        }