Advertisement
Guest User

Untitled

a guest
Dec 17th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. Pen treePen = new Pen(Color.Black, 3);
  2. Rectangle rect = new Rectangle(0, 0, 200, 100);
  3. foreach (BinaryTree.Node memb in Tree.Result)
  4. {
  5. index = 1;
  6. x += 5;
  7. y += 5;
  8. width += 5;
  9. height += 5;
  10. Screen.Refresh();
  11. }
  12.  
  13. }
  14.  
  15. private void Screen_Paint(object sender, PaintEventArgs e)
  16. {
  17. if (index == 1)
  18. {
  19. Pen treePen = new Pen(Color.Black, 3);
  20. Rectangle rect = new Rectangle(x, y, width, height);
  21. e.Graphics.DrawEllipse(treePen, rect);
  22. e.Graphics.DrawLine(treePen, 100,100,500,500);
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement