Beispiel #1
0
        public Node CreateChessBoard(int[] xs, int[] ys,
                                     System.Windows.Forms.Control control, bool isBlanck)
        {
            drawTool = new DrawTool(control);
            for (int i = 0; i < xs.Length; i++)
            {
                if (xs[i] == 0)
                {
                    continue;
                }
                for (int j = 0; j < ys.Length; j++)
                {
                    if (ys[j] == 0)
                    {
                        continue;
                    }
                    LayoutNodes.Create(j, i, xs[i], ys[j], drawTool);
                }
            }

            LayoutNodes.ShengCheng();
            context = new Context(LayoutNodes, new User(LayoutNodes));
            return(LayoutNodes.CenterNode);
        }
Beispiel #2
0
 public Node(int x, int y, DrawTool drawTool)
 {
     this.drawTool = drawTool;
     cpoint        = new CPoint(x, y, drawTool);
 }
Beispiel #3
0
 public Operation(bool isBlanck, LayoutNode layoutNodes)
 {
     this.isBlanck    = isBlanck;
     this.layoutNodes = layoutNodes;
     this.drawTool    = layoutNodes.DrawTool;
 }