private void BtnAgregar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmCheque ofrmCheque = new frmCheque(); ofrmCheque.FormClosed += ofrmCheque_FormClosed; if (!ofrmCheque.IsDisposed) { ofrmCheque.ShowDialog(); } }
private void MostrarElementoSeleccionado() { frmCheque ofrmCheque = new frmCheque(Convert.ToInt32(_currentRow["IDCuentaBanco"]), Convert.ToInt32(_currentRow["IDTipo"]), Convert.ToInt32(_currentRow["IDSubTipo"]), Convert.ToInt32(_currentRow["IDRuc"]), _currentRow["Numero"].ToString() ); ofrmCheque.FormClosed += ofrmCheque_FormClosed; ofrmCheque.ShowDialog(); }