Dictionary for forms with algorithm in MainWindow.cs