private void Dg_Buscado_MouseDoubleClick(object sender, MouseEventArgs e) { helperFunctions help = new helperFunctions(); if (!help.isDataGridEmpty(this.dg_Buscado)) { clsMaterial material = new clsMaterial(); material.id = int.Parse(dg_Buscado.SelectedCells[1].Value.ToString()); frmVerMaterial frmVer = new frmVerMaterial(material); frmVer.ShowDialog(); } }
private void Dg_Resumen_MouseDoubleClick(object sender, MouseEventArgs e) { //Determina si el DataGridView esta vacio. Si esta vacio no corre las funciones. helperFunctions help = new helperFunctions(); if (!help.isDataGridEmpty(this.dg_Resumen)) { clsMaterial material = new clsMaterial(); material.id = int.Parse(this.dg_Resumen.SelectedCells[0].Value.ToString()); frmVerMaterial frmVer = new frmVerMaterial(material); frmVer.ShowDialog(); } }