public IntersectionToolbox(ArbiterRoadNetwork arn, RoadDisplay rd, Editor ed)
 {
     this.arn = arn;
     this.rd = rd;
     this.ed = ed;
     InitializeComponent();
 }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="arn"></param>
        /// <param name="rd"></param>
        /// <param name="ed"></param>
        public ZoneTool(ArbiterRoadNetwork arn, RoadDisplay rd, Editor ed)
        {
            // set helpers we can access
            this.arn = arn;
            this.rd = rd;
            this.ed = ed;

            // helpers to wrap intersections for polygons
            this.WrappingHelpers = new List<Coordinates>();

            // create toolbox
            zt = new ZoneToolbox(this);
            zt.Show();
        }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="arn"></param>
        /// <param name="rd"></param>
        /// <param name="ed"></param>
        public IntersectionPulloutTool(ArbiterRoadNetwork arn, RoadDisplay rd, Editor ed, bool show)
        {
            // set helpers we can access
            this.arn = arn;
            this.rd = rd;
            this.ed = ed;

            // helpers to wrap intersections for polygons
            this.WrappingHelpers = new List<Coordinates>();

            // create toolbox
            if (show)
            {
                it = new IntersectionToolbox(arn, rd, ed);
                it.Show();
            }
        }
 public static void SetTextBox(RichTextBox box, Editor ed)
 {
     textBox = box;
     editor = ed;
 }