Exemple #1
0
 public BlankBoardWPF(GameBoardWPF board)
 {
     _thisDraw = new SKElement();
     _thisDraw.PaintSurface += DrawPaint;
     _thisGrid           = new Grid();
     HorizontalAlignment = HorizontalAlignment.Left;
     VerticalAlignment   = VerticalAlignment.Top;
     _cPBoard            = Resolve <ConnectFourGraphicsCP>();
     _thisGrid.Children.Add(_thisDraw);
     _thisGrid.Children.Add(board);
     Content = _thisGrid;
 }
Exemple #2
0
 public BlankBoardXF(GameBoardXF board)
 {
     _thisDraw = new SKCanvasView();
     _thisDraw.PaintSurface += DrawPaint;
     _thisGrid         = new Grid();
     HorizontalOptions = LayoutOptions.Start;
     VerticalOptions   = LayoutOptions.Start;
     _cPBoard          = Resolve <ConnectFourGraphicsCP>();
     _thisGrid.Children.Add(_thisDraw);
     _thisGrid.Children.Add(board);
     Content = _thisGrid;
 }