public void CreateTree(MyTree myTree) { top.weight = 0; top.x = 200; top.y = 60; myTree.top.routeweight = 0; myTree.top.positive = true; myTree.top.negative = true; myTree.top.depth = 1; myTree.top.route = "C"; if (Depth > 1) { FillNode(myTree.top); } }
private void FormMain_Load(object sender, EventArgs e) { g = this.CreateGraphics(); myTree = new MyTree(); MyTree.bitmap = new Bitmap(ClientRectangle.Width, ClientRectangle.Height); }