public MineSweeperConsoleController(IMineSweeperSpec spec)
        {
            _spec = spec;
            _spec.NextGenerationEnded += specNextGeneration;

            _runner = new Runner(_spec);
        }
        public MineSweeperConsoleController(IMineSweeperSpec spec)
        {
            _spec = spec;
            _spec.NextGenerationEnded += specNextGeneration;

            _runner = new Runner(_spec);
        }
        public MineSweeperGuiController(IMineSweeperSpec spec)
        {
            setupSpec(spec);

            _runner = new Runner(_spec);

            initializeMainForm();
        }
        public MineSweeperGuiController(IMineSweeperSpec spec)
        {
            setupSpec(spec);

            _runner = new Runner(_spec);

            initializeMainForm();
        }
        private void setupSpec(IMineSweeperSpec spec)
        {
            _setupNeeded = true;

            _spec     = spec;
            _settings = _spec.Settings;
            _spec.NextGenerationEnded += specNextGeneration;
            _spec.TickEnded           += specTickEnded;
        }
        private void setupSpec(IMineSweeperSpec spec)
        {
            _setupNeeded = true;

            _spec = spec;
            _settings = _spec.Settings;
            _spec.NextGenerationEnded += specNextGeneration;
            _spec.TickEnded += specTickEnded;
        }
 public SpecEventArgs(IMineSweeperSpec spec)
 {
     Spec = spec;
 }
 public SpecEventArgs(IMineSweeperSpec spec)
 {
     Spec = spec;
 }