Esempio n. 1
0
        public BetTreeNodeModel(BetTreeModel tree, BetTreeNodeDisplay display, BetTreeNodeStyle style, HandSnapshotModel snapshot, BetTreeNodeModel parent, bool isDynamic)
        {
            this.Tree = tree;
            this.DisplayModel = display;
            this.StyleModel = style;
            this._parentSnapshot = snapshot;
            this.Snapshot = snapshot;
            this.Parent = parent;
            this.IsDynamic = isDynamic;
            this.Result = new BetTreeNodeResults(snapshot.Stacks.Length);

            this.Children = new ObservableCollection<BetTreeNodeModel>();
            this.CanRemove = IsFixed() ? Visibility.Collapsed : Visibility.Visible;

            this.Info = new BetTreeNodeInfoModel(this, this.Data is ManualResultsModel);
        }
Esempio n. 2
0
 public BetTreeNodeModel(BetTreeModel tree, BetTreeNodeDisplay display, BetTreeNodeStyle style, HandSnapshotModel snapshot)
     : this(tree, display, style, snapshot, null)
 {
 }
Esempio n. 3
0
 public BetTreeNodeModel(BetTreeModel tree, BetTreeNodeDisplay display, BetTreeNodeStyle style, HandSnapshotModel snapshot, BetTreeNodeModel parent)
     : this(tree, display, style, snapshot, parent, false)
 {
 }
Esempio n. 4
0
 protected void InitialiseNodeDisplays()
 {
     _nodeStyles = new Dictionary<Type, BetTreeNodeDisplay>();
     _nodeStyles[typeof(RootNodeDataModel)] = new BetTreeNodeDisplay()
         { DisplayRegex = "Root", Width = new GridLength(80) };
     _nodeStyles[typeof(PreflopBetModel)] = new BetTreeNodeDisplay();
     _nodeStyles[typeof(PostFlopBetModel)] = new BetTreeNodeDisplay();
     _nodeStyles[typeof(RandomBetModel)] = new BetTreeNodeDisplay()
         { DisplayRegex = "{Round} - {CurrentPlayer} ({CurrentPlayerStake}): {BetAction} {BetAmount} ({TotalPot})\n{Percentage}" };
     _nodeStyles[typeof(ShowdownModel)] = new BetTreeNodeDisplay()
         { DisplayRegex = "Showdown" };
     _nodeStyles[typeof(ResultsModel)] = new BetTreeNodeDisplay()
         { DisplayRegex = "Result 1: {1}, 2: {2}, 3: {3}, 4: {4}, 5: {5}, 6: {6}" };
 }