private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (this.comboBox2.Text == "REGALIA" && ID == 0) { DataGridViewRow row1 = dataGridView1.CurrentRow; Documento = Convert.ToString(row1.Cells["TRANSACCION"].Value); modo = 2; ingreso_reg_ven fm12 = new ingreso_reg_ven(); // Este codigo obtiene cuando el formulario se cierra fm12.FormClosed += new System.Windows.Forms.FormClosedEventHandler(ingreso_reg_FormClosed); fm12.ShowDialog(); } else if (this.comboBox2.Text == "VENCIDOS") { DataGridViewRow row1 = dataGridView1.CurrentRow; Documento = Convert.ToString(row1.Cells["NUM_DOC"].Value); modo = 4; ingreso_reg_ven fm12 = new ingreso_reg_ven(); fm12.ShowDialog(); } }
private void toolStripButton4_Click(object sender, EventArgs e) { modo = 3; this.Hide(); ingreso_reg_ven Fm12 = new ingreso_reg_ven(); Fm12.Show(); }