private void vInitializeEvents(ref frmFDataBaseConfigMySqlAdmin formFAdmin) { // Carrega Dados Admin formFAdmin.eCallCarregaDados += new mdlDataBaseConfig.frmFDataBaseConfigMySqlAdmin.delCallCarregaDados(vCarregaDadosAdmin); // Carrega Cor formFAdmin.eCallCarregaCor += new mdlDataBaseConfig.frmFDataBaseConfigMySqlAdmin.delCallCarregaCor(formFAdmin_eCallCarregaCor); // Server formFAdmin.eCallServer += new mdlDataBaseConfig.frmFDataBaseConfigMySqlAdmin.delCallServer(bServer); // MySql formFAdmin.eCallMySql += new mdlDataBaseConfig.frmFDataBaseConfigMySqlAdmin.delCallMySql(bMySql); // DataBase formFAdmin.eCallDataBase += new mdlDataBaseConfig.frmFDataBaseConfigMySqlAdmin.delCallDataBase(bDataBase); // User formFAdmin.eCallUser += new mdlDataBaseConfig.frmFDataBaseConfigMySqlAdmin.delCallUser(bUser); // User Associated formFAdmin.eCallUserAssociated += new mdlDataBaseConfig.frmFDataBaseConfigMySqlAdmin.delCallUserAssociated(bUserAssociated); // DataBase Updated formFAdmin.eCallDataBaseUpdated += new mdlDataBaseConfig.frmFDataBaseConfigMySqlAdmin.delCallDataBaseUpdated(bDataBaseUpdated); // DefaultData formFAdmin.eCallDefaultData += new mdlDataBaseConfig.frmFDataBaseConfigMySqlAdmin.delCallDefaultData(bDBDefaultData); }
private void ShowDialogAdmin() { m_strHost = m_txtServidorUtilizar.Text; frmFDataBaseConfigMySqlAdmin formFAdmin = new frmFDataBaseConfigMySqlAdmin(m_strHost, m_strPort, m_strDataBaseName, m_strUser, m_strPassword); vInitializeEvents(ref formFAdmin); formFAdmin.ShowDialog(); formFAdmin = null; }