コード例 #1
0
        private void PuertoDestino_BT_Click(object sender, EventArgs e)
        {
            SelectInputForm form = new SelectInputForm(PuertoList.GetList(false));

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                PuertoInfo p = (PuertoInfo)form.Selected;
                _entity.PuertoDestino = p.Valor;
            }
        }
コード例 #2
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;
            }
        }