public StaticsController(MainWindow mw)
 {
     mainWindow = mw;
     cheating = showedCandidates = showedBadValues = false;
     timerEnabled = true;
     steps = 0;
     elapsedMilis = 0;
     timer = new Timer();
     timer.Interval = 1000;
     timer.Elapsed += TimerOnTick;
     db = new MySqlDB();
 }
        public MapController(TableController tableCtrl, StaticsController sctrl, SolverController solver, MainWindow mw)
        {
            mainWindow = mw;
            solverCtrl = solver;
            statCtrl = sctrl;
            tableController = tableCtrl;

            maps = new List<Problem>();
            db = new MySqlDB();

            LoadMapsFromDB();

            GenerateMap(maps.ElementAt(0));
        }