private void InitializeEvents(ref Formularios.frmFSDVincular formFVincular) { // Refresh REs formFVincular.eCallRefreshREs += new mdlSD.Formularios.frmFSDVincular.delCallRefreshREs(vRefreshREDisponiveis); // Refresh REs Vinculados ao SD formFVincular.eCallRefreshREsVinculados += new mdlSD.Formularios.frmFSDVincular.delCallRefreshREsVinculados(vRefreshREVinculadosSD); // RE Vincular formFVincular.eCallREVincular += new mdlSD.Formularios.frmFSDVincular.delCallREVincular(bVincularREaSD); // RE Desvincular formFVincular.eCallREDesvincular += new mdlSD.Formularios.frmFSDVincular.delCallREDesvincular(bDesvincularRE); }
private bool ShowDialogVincular(int nIdSD) { Formularios.frmFSDVincular formFVincular = new Formularios.frmFSDVincular(m_strEnderecoExecutavel, nIdSD); InitializeEvents(ref formFVincular); formFVincular.ShowDialog(); if (formFVincular.Modificado) { if ((m_typDatSetPEs != null) && (m_typDatSetPEs.tbPEs.Rows.Count > 0)) { mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPE = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)m_typDatSetPEs.tbPEs.Rows[0]; dtrwPE.mstrSD = m_strPersonalizavel; } return(true); } return(false); }