예제 #1
0
 private void btnCrear_Click(object sender, EventArgs e)
 {
     using (var form = new FormNuevaEspecie())
     {
         var result = form.ShowDialog();
         if (result == DialogResult.OK)
         {
             RefreshGrid();
         }
     }
 }
예제 #2
0
 private void btnNuevaEspecie_Click(object sender, EventArgs e)
 {
     using (var form = new FormNuevaEspecie())
     {
         var result = form.ShowDialog();
         if (result == DialogResult.OK)
         {
             ControllerPeces.Instance.PopulateComboboxEspecies(ref comboboxEspecies, ref idEspeciesCombobox);
         }
     }
 }
예제 #3
0
        private void ModificarEspecie()
        {
            int colIdEspecie = ManagerGrids.Instance.GetColumnIndexByName(gridEspecies, "IDESPECIE");
            int idEspecie    = Convert.ToInt32(gridEspecies.Rows[gridEspecies.SelectedRows[0].Index].Cells[colIdEspecie].Value);

            using (var form = new FormNuevaEspecie(idEspecie))
            {
                var result = form.ShowDialog();
                if (result == DialogResult.OK)
                {
                    RefreshGrid();
                }
            }
        }