private void GridView_DoubleClick(object sender, EventArgs e) { if (_currentRow != null && this.gridView.SelectedRowsCount == 1) { frmProducto ofrmProducto = new frmProducto(Convert.ToInt32(_currentRow["IDProducto"]), "View"); ofrmProducto.FormClosed += ofrmProducto_FormClosed; ofrmProducto.ShowDialog(); } }
private void CargarProducto(String Accion) { if (_currentRow != null) { frmProducto ofrmProducto = new frmProducto(Convert.ToInt32(_currentRow["IDProducto"]), Accion); ofrmProducto.FormClosed += OfrmAsiento_FormClosed; ofrmProducto.ShowDialog(); } }
private void BtnAgregar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmProducto ofrmProducto = new frmProducto(); ofrmProducto.FormClosed += OfrmAsiento_FormClosed; if (!ofrmProducto.IsDisposed) { ofrmProducto.ShowDialog(); } }