Beispiel #1
0
        static void StopAllRules(StopAllRulesOptions options)
        {
            foreach (var item in BGWorker.Rules)
            {
                BGWorker.StopRule(item.RuleID);
            }

            Console.WriteLine("All rules stopped!");
        }
Beispiel #2
0
        static void RemoveAllRules(RemoveAllRulesOptions options)
        {
            foreach (var item in BGWorker.Rules)
            {
                BGWorker.StopRule(item.RuleID);
            }

            BGWorker.Rules.Clear();
            Console.WriteLine("Rules removed");
        }
Beispiel #3
0
 static void RemoveRule(RemoveRuleOptions options)
 {
     BGWorker.StopRule(int.Parse(options.RemoveRuleID));
     BGWorker.RemoveRule(int.Parse(options.RemoveRuleID));
 }
Beispiel #4
0
 static void StopRule(StopRuleOptions options)
 {
     BGWorker.StopRule(int.Parse(options.StopRuleID));
 }