Пример #1
0
        private bool ShowDialogConfigEspecificMySql()
        {
            bool bRetorno = true;
            frmFDataBaseConfigMySql formFConfigDataBaseMysql = new frmFDataBaseConfigMySql(ref m_cls_ter_TratadorErro, m_strDataBaseAccessMySqlHost, m_strDataBaseAccessMySqlPort, m_strDataBaseAccessMySqlDataBaseName, m_strDataBaseAccessMySqlUser, m_strDataBaseAccessMySqlUser);

            InitializeEventsFormDataBaseMySql(ref formFConfigDataBaseMysql);
            formFConfigDataBaseMysql.ShowDialog();
            formFConfigDataBaseMysql = null;
            return(bRetorno);
        }
Пример #2
0
        private void InitializeEventsFormDataBaseMySql(ref frmFDataBaseConfigMySql formFConfigDataBaseMysql)
        {
            // Cor
            formFConfigDataBaseMysql.eCallCarregaCor += new mdlDataBaseConfig.frmFDataBaseConfigMySql.delCallCarregaCor(formFConfigDataBaseMysql_eCallCarregaCor);

            // Backup
            formFConfigDataBaseMysql.eCallConfigBackup += new mdlDataBaseConfig.frmFDataBaseConfigMySql.delCallConfigBackup(vDataBaseConfigBackup);

            // Restore
            formFConfigDataBaseMysql.eCallConfigRestore += new mdlDataBaseConfig.frmFDataBaseConfigMySql.delCallConfigRestore(vDataBaseConfigRestore);

            // SalvaDados
            formFConfigDataBaseMysql.eCallSalvaDados += new mdlDataBaseConfig.frmFDataBaseConfigMySql.delCallSalvaDados(formFConfigDataBaseMysql_eCallSalvaDados);

            // Configurated Right
            formFConfigDataBaseMysql.eCallConfiguratedRight += new mdlDataBaseConfig.frmFDataBaseConfigMySql.delCallConfiguratedRight(formFConfigDataBaseMysql_eCallConfiguratedRight);
        }