private void listarEspeciesTsm_Click(object sender, EventArgs e) { try { Especies_Form childForm = new Especies_Form(); childForm.MdiParent = this; childForm.Show(); } catch (Exception ex) { Error_Form er = new Error_Form(ex.Message); er.MdiParent = this; er.Show(); } }
private void verDetalleBtn_Click(object sender, EventArgs e) { try { Guid cod = (Guid)especieCbx.SelectedValue; Especies_Form childForm = new Especies_Form(); childForm.MdiParent = ParentForm; childForm.setstate("formulario"); childForm.btn_detalle(sender, e, cod); childForm.Show(); } catch(Exception ex) { Error_Form childForm = new Error_Form(ex.Message); childForm.Show(); } }
private void registrarEspecieRegenBtn_Click(object sender, EventArgs e) { Especies_Form childForm = new Especies_Form(); childForm.MdiParent = ParentForm; childForm.Btn_nuevaEspecieForm_Click(sender, e, (PROYECTO)Program.Cache.Get("project"),"formulario"); childForm.Show(); }
private void RegistrarEspecieBtn_Click(object sender, EventArgs e) { Especies_Form childForm = new Especies_Form(); childForm.Btn_nuevaEspecieForm_Click(sender, e, (PROYECTO)Program.Cache.Get("project"),"formulario"); childForm.ShowDialog(this); especieBS.DataSource = ((PROYECTO)Program.Cache.Get("project")).ESPECIE.OrderBy(ex => ex.NOMCOMUN); especieCbx.DataSource = especieBS; especieCbx.DisplayMember = "NOMCIENTIFICO"; especieCbx.ValueMember = "CODESP"; especieCbx.Refresh(); if (especieBS.Count != 0) { especieCbx.SelectedItem = (ESPECIE)especieBS.Current; especieRegenCbx.SelectedItem = (ESPECIE)especieBS.Current; } }
private void detalleEspecieRegenBtn_Click(object sender, EventArgs e) { Guid cod = (Guid)especieRegenCbx.SelectedValue; Especies_Form childForm = new Especies_Form(); childForm.MdiParent = ParentForm; childForm.setstate("formulario"); childForm.btn_detalle(sender, e, cod); childForm.Show(); }
private void registrarSpecieBtn_Click(object sender, EventArgs e) { try { Especies_Form childForm = new Especies_Form(); childForm.Btn_nuevaEspecieForm_Click(sender, e, null, "proyecto"); childForm.ShowDialog(this); especieBS.DataSource = species.GetSpecies(); especiesDGW.DataSource = especieBS; if (newProject != null) { List<ESPECIE> speciesProject = newProject.ESPECIE.ToList(); foreach (DataGridViewRow row in especiesDGW.Rows) { ESPECIE tempSpecie = null; if (speciesProject.Count == 0) break; foreach (ESPECIE specie in speciesProject) { if (specie.NOMCOMUN == row.Cells[1].Value.ToString()) { tempSpecie = specie; break; } } if (tempSpecie != null) { speciesProject.Remove(tempSpecie); row.Cells[0].Value = true; } } } especiesDGW.Refresh(); } catch (Exception ex) { Error_Form er = new Error_Form(ex.Message); er.Show(); } }