public Main(Algorithm algorithmName, Form1 basicform) { InitializeComponent(); observer = new UIExecuteObserver(this, basicform); algorithm = AlgorithmFactory.getAlorithm(algorithmName, observer); InitializeValues(); }