Пример #1
0
        private void Raza_BT_Click(object sender, EventArgs e)
        {
            SelectInputForm form = new SelectInputForm(RazaAnimalList.GetList(false));

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                RazaAnimalInfo raza = (RazaAnimalInfo)form.Selected;
                _entity.Raza = raza.Valor;
                Raza_TB.Text = _entity.Raza;
            }
        }
        public SelectInputForm(RazaAnimalList list)
            : base(true)
        {
            InitializeComponent();

            _razas = RazaAnimalList.SortList(list, "Valor", ListSortDirection.Ascending);
            _tipo  = typeof(RazaAnimalList);

            this.Text = Resources.Labels.RAZAANIMAL_TITLE;

            SetFormData();
        }