Exemple #1
0
 public override void LoadFromXml(BetTreeNodeMetaXml xml)
 {
     string randomString = xml.Parms.Find(x => x.Name == "Random").Value;
     Random = Convert.ToInt32(randomString);
     BetModel.LoadFromXml(xml.BetXml);
 }
Exemple #2
0
 public override void LoadFromXml(BetTreeNodeMetaXml xml)
 {
 }
Exemple #3
0
 public override BetTreeNodeMetaXml SaveToXml()
 {
     BetTreeNodeMetaXml ret = new BetTreeNodeMetaXml();
     BetTreeNodeParmXml randomParm = new BetTreeNodeParmXml();
     randomParm.Name = "Random";
     randomParm.Value = Random.ToString();
     ret.Parms.Add(randomParm);
     ret.BetXml = BetModel.SaveToXml();
     return ret;
 }
Exemple #4
0
 public override void LoadFromXml(BetTreeNodeMetaXml xml)
 {
     if (xml.Parms.Exists(x => x.Name == "Range"))
     {
         string rangeString = xml.Parms.Find(x => x.Name == "Range").Value;
         Range.LoadFromString(rangeString);
     }
     BetModel.LoadFromXml(xml.BetXml);
 }
Exemple #5
0
 public override BetTreeNodeMetaXml SaveToXml()
 {
     BetTreeNodeMetaXml ret = new BetTreeNodeMetaXml();
     BetTreeNodeParmXml rangeParm = new BetTreeNodeParmXml();
     rangeParm.Name = "Range";
     rangeParm.Value = Range.SaveToString();
     ret.Parms.Add(rangeParm);
     ret.BetXml = BetModel.SaveToXml();
     ret.Name = BetTreeNodeService.PREFLOP_NODE_META;
     return ret;
 }
Exemple #6
0
        public override BetTreeNodeMetaXml SaveToXml()
        {
            BetTreeNodeMetaXml ret = new BetTreeNodeMetaXml();
            BetTreeNodeParmXml rangeParm = new BetTreeNodeParmXml();
            rangeParm.Name = "Range";
            rangeParm.Value = Range.SaveToString();

            // MDS Here ConditionService needs to be saved
            ret.Parms.Add(rangeParm);
            ret.BetXml = BetModel.SaveToXml();
            ret.Name = BetTreeNodeService.POSTFLOP_NODE_META;
            return ret;
        }
Exemple #7
0
 public abstract void LoadFromXml(BetTreeNodeMetaXml xml);