Ejemplo n.º 1
0
        private void initializeOSS(string overwatchPath)
        {
            RegionRuleCreator ruleCreator = new RegionRuleCreator(overwatchPath);

            DeleteAllOutboundRules();
            ruleCreator.CreateAllOutboundRules();
            InitializeComponent();
            EnableAllServers();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            string            programPath   = @"T:\Archivos de Programa\Overwatch\Overwatch.exe";
            RegionRuleCreator regionBlocker = new RegionRuleCreator(programPath);

            Console.WriteLine(regionBlocker.CreateAllOutboundRules());
            RegionBlockerHandler handler = new RegionBlockerHandler();

            foreach (IRule rule in handler.OverwatchSSBRules)
            {
                Console.WriteLine(rule.Name);
                foreach (IAddress address in rule.RemoteAddresses)
                {
                    Console.WriteLine(address.ToString());
                }
                Console.WriteLine("-------------------------------------------------------------------------------------------------------------------------");
            }
            Console.ReadLine();
        }