public SystemGeneratorController()
 {
     InitializeComponent();
     typeDetector = new systemElementTypeDetection(maxCircles);
     typeDetector.showPropabilities(textBox1);
     //systemElements = new List<systemElement>();
     Worker = new SystemGeneratorWorker2(textBox1);
 }
        public SystemGeneratorWorker(System.Windows.Forms.TextBox textbox = null)
        {
            TextBox = textbox;

            typeDetector = new systemElementTypeDetection(maxCircles);
            typeDetector.showPropabilities(textbox);

            startingSystemTypeDetector = new systemElementTypeDetection(16, true);
            startingSystemTypeDetector.showPropabilities(textbox);
        }