Example #1
0
 private static System.Workflow.Activities.Rules.RuleSet DeserializeRuleSet(string ruleSetFileName)
 {
     XmlTextReader rulesReader = new XmlTextReader(RuleFilePath + ruleSetFileName);
     System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializer serializerRead = new System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializer();
     System.Workflow.Activities.Rules.RuleSet ruleSet = (System.Workflow.Activities.Rules.RuleSet)serializerRead.Deserialize(rulesReader);
     rulesReader.Close();
     return ruleSet;
 }
Example #2
0
        protected void Deserialize()
        {
            XmlTextReader rulesReader = new XmlTextReader(this.RulesFileStream);

            System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializer serializerRead = new System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializer();
            System.Workflow.Activities.Rules.RuleSet ruleSet = (System.Workflow.Activities.Rules.RuleSet)serializerRead.Deserialize(rulesReader);
            rulesReader.Close();
            this.m_RuleSet = ruleSet;
        }
Example #3
0
 protected void Deserialize()
 {
     XmlTextReader rulesReader = new XmlTextReader(this.RulesFileStream);
     System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializer serializerRead = new System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializer();
     System.Workflow.Activities.Rules.RuleSet ruleSet = (System.Workflow.Activities.Rules.RuleSet)serializerRead.Deserialize(rulesReader);
     rulesReader.Close();
     this.m_RuleSet = ruleSet;
 }
Example #4
0
        private static System.Workflow.Activities.Rules.RuleSet DeserializeRuleSet(string ruleSetFileName)
        {
            XmlTextReader rulesReader = new XmlTextReader(RuleFilePath + ruleSetFileName);

            System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializer serializerRead = new System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializer();
            System.Workflow.Activities.Rules.RuleSet ruleSet = (System.Workflow.Activities.Rules.RuleSet)serializerRead.Deserialize(rulesReader);
            rulesReader.Close();
            return(ruleSet);
        }