예제 #1
0
        public static bool UninstallCallbackModule()
        {
            bool isInstall;

            ModuleSettingsProvider.RemoveSqlSetting("email4notify", _moduleName);
            ModuleSettingsProvider.RemoveSqlSetting("emailFormat", _moduleName);
            ModuleSettingsProvider.RemoveSqlSetting("emailSubject", _moduleName);
            ModuleSettingsProvider.RemoveSqlSetting("windowTitle", _moduleName);
            ModuleSettingsProvider.RemoveSqlSetting("windowText", _moduleName);

            using (var da = new SQLDataAccess())
            {
                if (!ModulesRepository.IsExistsModuleTable(da, "Module", _moduleName))
                {
                    return(true);
                }

                da.cmd.CommandText = "DROP TABLE Module." + _moduleName;
                da.cmd.CommandType = CommandType.Text;

                da.cnOpen();
                da.cmd.ExecuteNonQuery();
                da.cnClose();

                isInstall = ModulesRepository.IsExistsModuleTable(da, "Module", _moduleName);
            }
            return(isInstall);
        }
예제 #2
0
 public bool UninstallModule()
 {
     ModuleSettingsProvider.RemoveSqlSetting("UniSenderId", ModuleID);
     ModuleSettingsProvider.RemoveSqlSetting("UniSenderFromName", ModuleID);
     ModuleSettingsProvider.RemoveSqlSetting("UniSenderFromEmail", ModuleID);
     ModuleSettingsProvider.RemoveSqlSetting("UniSenderRegUsersList", ModuleID);
     ModuleSettingsProvider.RemoveSqlSetting("UniSenderOrderCustomersList", ModuleID);
     return(true);
 }
예제 #3
0
        public static bool UninstallBuyInTimeModule()
        {
            ModuleSettingsProvider.RemoveSqlSetting("BuyInTimeActionTitle", ModuleName);
            ModuleSettingsProvider.RemoveSqlSetting("BuyInTimeLabel", ModuleName);
            ModuleSettingsProvider.RemoveSqlSetting("BuyInTimeDefaultActionTextMode1", ModuleName);
            ModuleSettingsProvider.RemoveSqlSetting("BuyInTimeDefaultActionTextMode2", ModuleName);

            return(true);
        }
예제 #4
0
        public bool UninstallModule()
        {
            ModuleSettingsProvider.RemoveSqlSetting("MailChimpId", ModuleID);
            ModuleSettingsProvider.RemoveSqlSetting("MailChimpFromName", ModuleID);
            ModuleSettingsProvider.RemoveSqlSetting("MailChimpFromEmail", ModuleID);
            ModuleSettingsProvider.RemoveSqlSetting("MailChimpRegUsersList", ModuleID);
            ModuleSettingsProvider.RemoveSqlSetting("MailChimpOrderCustomer", ModuleID);

            return(true);
        }
예제 #5
0
 public bool UninstallModule()
 {
     ModuleSettingsProvider.RemoveSqlSetting("WatermarkPositionX", ModuleStringId);
     ModuleSettingsProvider.RemoveSqlSetting("WatermarkPositionY", ModuleStringId);
     return(true);
 }
예제 #6
0
 public bool UninstallModule()
 {
     ModuleSettingsProvider.RemoveSqlSetting("showmode", ModuleID);
     return(true);
 }