Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Pen treePen = new Pen(Color.Black, 3);
- Rectangle rect = new Rectangle(0, 0, 200, 100);
- foreach (BinaryTree.Node memb in Tree.Result)
- {
- index = 1;
- x += 5;
- y += 5;
- width += 5;
- height += 5;
- Screen.Refresh();
- }
- }
- private void Screen_Paint(object sender, PaintEventArgs e)
- {
- if (index == 1)
- {
- Pen treePen = new Pen(Color.Black, 3);
- Rectangle rect = new Rectangle(x, y, width, height);
- e.Graphics.DrawEllipse(treePen, rect);
- e.Graphics.DrawLine(treePen, 100,100,500,500);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement