Exemple #1
0
        private void updateRules()
        {
            ruleManager = new RuleManager();
            ruleManager.ConnectRules(new LocalRuleConnector());

            var ruleFiles = new ObservableCollection <Rule>();

            foreach (var r in ruleManager.GetRule())
            {
                ruleFiles.Add(r);
            }
            listRules.ItemsSource = ruleFiles;
        }