private void DGV_ConsultaMateriais_CellContentClick(object sender, DataGridViewCellEventArgs e) { frmMateriais = new FRM_Materiais(DGV_ConsultaMateriais.CurrentRow.Cells[0].Value.ToString(), DGV_ConsultaMateriais.CurrentRow.Cells[1].Value.ToString(), DGV_ConsultaMateriais.CurrentRow.Cells[2].Value.ToString(), int.Parse(DGV_ConsultaMateriais.CurrentRow.Cells[3].Value.ToString()), DGV_ConsultaMateriais.CurrentRow.Cells[4].Value.ToString()); frmMateriais.Show(); this.Close(); }
private void BTMateriais_Click(object sender, EventArgs e) { frmMeteriais = new FRM_Materiais(); frmMeteriais.Show(); this.Close(); }