Example #1
0
        private void FormularioInsertar_Load(object sender, EventArgs e)
        {
            ArrayList familias = Familia.SelectAll();

            for (int i = 0; i < familias.Count; i++)
            {
                Familia f = (Familia)familias[i];
                cmb_familias.Items.Add(f.Nombre);
            }
        }
Example #2
0
        private void ModificarAlimento_Load(object sender, EventArgs e)
        {
            cargarDataGridView();
            ArrayList familias = Familia.SelectAll();

            for (int i = 0; i < familias.Count; i++)
            {
                Familia f = (Familia)familias[i];
                txtFamilia.Items.Add(f.Nombre);
            }
        }