/// <summary>
        /// Called when a selection of the structure has changed.
        /// </summary>
        protected virtual void onTypeChanged(object sender, System.EventArgs e)
        {
            ElectricPoleContribution contrib = (ElectricPoleContribution)typeBox.SelectedItem;

            using (PreviewDrawer drawer = contrib.createPreview(preview.Size)) {
                if (previewBitmap != null)
                {
                    previewBitmap.Dispose();
                }
                preview.Image = previewBitmap = drawer.createBitmap();
            }
            recreateController();
        }