示例#1
0
        private void SetTableau()
        {
            _tableauViews = new TableauView[GameTable.Tableaus];
            for (int i = 0; i < GameTable.Tableaus; i++)
            {
                var tableauView = new TableauView();

                Grid.SetColumn(tableauView, i);
                Grid.SetRow(tableauView, 2);
                Panel.SetZIndex(tableauView, 0);
                tableauView.SetTableau(_table.GetTableau(i));

                RootView.Children.Add(tableauView);
                _tableauViews[i] = tableauView;
            }
        }