public OpenMap(MapController mc)
        {
            InitializeComponent();

            mapCtrl = mc;

            titlePanel.MouseLeftButtonDown += new MouseButtonEventHandler(Window_MouseDown);
            exitIcon.MouseLeftButtonDown += new MouseButtonEventHandler(Window_Exit);

            RenderListBox();
        }
        private void GenerateNewMap()
        {
            stats = new StaticsController(this);
            tableCtrl = new TableController(this, stats);
            solver = new SolverController(tableCtrl.Table, this);
            mapCtrl = new MapController(tableCtrl, stats, solver, this);

            tableCtrl.ShowCandidates = false;
            tableCtrl.PreSetBadValues(false);
        }