Esempio n. 1
0
        public void TestRuleOptions()
        {
            //m_editor.WriteMessage("Run Test Rule Options command\n");
            System.Windows.MessageBox.Show("step3");
            RuleConfigDialog dialog = RuleConfigDialog.GetInstance();

            System.Windows.MessageBox.Show("step4");
            dialog.Show();
        }
Esempio n. 2
0
        public void ConfigureRule()
        {
            InitializeRule();

            ((RuleLibrary)RuleManagerInstance.Storage).Load();

            // Create a default rule
            RulePoint rp = RuleManagerInstance.GetRulePoint("/PipeRule");

            if (!rp.HasActivity)
            {
                rp.CreateDefaultWorkflow();
            }

            System.Windows.Application app    = new System.Windows.Application();
            RuleConfigDialog           dialog = RuleConfigDialog.GetInstance();

            dialog.SelectedRulePath = "/PipeRule";
            app.Run(dialog);

            ((RuleLibrary)RuleManagerInstance.Storage).Save();
        }