Ejemplo n.º 1
0
        private async void UcInfractionTypes_Load(object sender, EventArgs e)
        {
            this.infractionTypes = await ApiManagerInfractionTypes.GetAllInfractionTypes();

            this.infractionTypeDTOBindingSource.DataSource = this.infractionTypes.OrderBy(m => m.Name);

            SetResources();
        }
Ejemplo n.º 2
0
        private async void LoadInfractionTypes()
        {
            this._infractionTypes = new List <InfractionTypeDTO>()
            {
                new InfractionTypeDTO()
                {
                    Name = " Seleccionar infracción", Points = 0
                }
            };
            var i = await ApiManagerInfractionTypes.GetAllInfractionTypes();

            this._infractionTypes.AddRange(i);
            this.infractionTypeDTOBindingSource.DataSource = this._infractionTypes;
        }
Ejemplo n.º 3
0
        private async Task LoadInfractionTypes()
        {
            this.infractionTypes = new List <InfractionTypeDTO>()
            {
                new InfractionTypeDTO()
                {
                    Name = "TODAS"
                }
            };

            var it = await ApiManagerInfractionTypes.GetAllInfractionTypes();

            this.infractionTypes.AddRange(it);

            this.infractionTypeDTOBindingSource.DataSource = this.infractionTypes;
        }