public void DrawInterTriangle(int x, int y) { GraphicToken gt = draw(x, y, TokenType.TRIANGLE); mInterElem.Add(gt); gt.SetPos(x, y); mInterTriangleID++; }
public void DrawTarget(int x, int y) { GraphicToken gt = draw(x, y, TokenType.DARKCIRCLE); mTarElem.Add(gt); gt.SetPos(x, y); mTargetID++; }
public void DrawInterCircle(int x, int y) { GraphicToken gt = draw(x, y, TokenType.LIGHTCIRCLE); mInterElem.Add(gt); gt.SetPos(x, y); mInterCircleID++; }
private GraphicToken draw(int x, int y, TokenType type) { GraphicToken gt = new GraphicToken(type, this); mPage.amBaseCanvas.Children.Add(gt); Canvas.SetTop(gt, SUBAREA_BEG_Y + y - gt.HALF_HEIGHT); Canvas.SetLeft(gt, SUBAREA_BEG_X + x - gt.HALF_WIDHT); return(gt); }