Exemplo n.º 1
0
        public static string Disable(BankPlugin plugin)
        {
            if (!IsPluginEnabled(plugin))
            {
                return(string.Empty);
            }
            string path = GetFolderProgramFiles32();

            return(Update(false, plugin.ServiceImageName, string.Format("{0}{1}", path, plugin.FolderName), string.Format("{0}{1}{2}", path, plugin.FolderName, DISABLE)));
        }
Exemplo n.º 2
0
        public static List <BankPlugin> GetPlugins()
        {
            List <BankPlugin> plugins = new List <BankPlugin>();
            string            path    = GetFolderProgramFiles32();
            //Banco do Brasil
            BankPlugin plugin = BankPlugin.GetBankPluginBB();

            if ((ExistFolder(string.Format("{0}{1}", path, plugin.FolderName))) || (ExistFolder(string.Format("{0}{1}{2}", path, plugin.FolderName, DISABLE))))
            {
                plugins.Add(plugin);
            }
            return(plugins);
        }
Exemplo n.º 3
0
        public static bool IsPluginEnabled(BankPlugin plugin)
        {
            string path = GetFolderProgramFiles32();

            return((ExistFolder(string.Format("{0}{1}", path, plugin.FolderName))));
        }