示例#1
0
 public static void SetDecisionTree(UvsChess.DecisionTree dt)
 {
     lock (_updateGuiDataLockObject)
     {
         _lastDecisionTree = dt;
     }
 }
        public GuiDecisionTree(DecisionTree dt)
        {
            InitializeComponent();

            _dt = dt;

            ListBox rootNodeListBox = null;

            rootNodeListBox = NewDecisionListBox(new List<DecisionTree>() { _dt });

            //rootNodeListBox.Location = new Point(-5, 0);
            decisionListBoxes.Add(rootNodeListBox);

            guiChessBoard1.IsLocked = true;
            this.splitContainer1.Panel2.Controls.Add(rootNodeListBox);
            rootNodeListBox.SelectedIndex = 0;

            this.hScrollBar1.LargeChange = rootNodeListBox.Width;
        }
示例#3
0
        public GuiDecisionTree(DecisionTree dt)
        {
            InitializeComponent();

            _dt = dt;

            ListBox rootNodeListBox = null;

            rootNodeListBox = NewDecisionListBox(new List <DecisionTree>()
            {
                _dt
            });

            //rootNodeListBox.Location = new Point(-5, 0);
            decisionListBoxes.Add(rootNodeListBox);

            guiChessBoard1.IsLocked = true;
            this.splitContainer1.Panel2.Controls.Add(rootNodeListBox);
            rootNodeListBox.SelectedIndex = 0;

            this.hScrollBar1.LargeChange = rootNodeListBox.Width;
        }
示例#4
0
 public static void SetDecisionTree(UvsChess.DecisionTree dt)
 {
     lock (_updateGuiDataLockObject)
     {
         _lastDecisionTree = dt;
     }
 }