public SolverEngine(ReaderEngine engine, SolvingMethod method, int length) { _isInitialized = true; _readerEngine = engine; _solverMethod = method; _caseLength = length; if (_readerEngine == ReaderEngine.Python) { _scriptReader = new PythonScriptReader(); } else if (_readerEngine == ReaderEngine.CSharp) { _scriptReader = new BuiltInFunctions(); } else if (_readerEngine == ReaderEngine.FSharp) { } else if (_readerEngine == ReaderEngine.Ruby) { } else if (_readerEngine == ReaderEngine.BuiltIn) { } }
public frmMain() { InitializeComponent(); cbIter.DataSource = Enum.GetValues(typeof(Iterations)); btnFore.Click += btnColors_Click; btnBack.Click += btnColors_Click; _reader = new ReaderEngine(); }
public SolverEngine(ReaderEngine engine, SolvingMethod method, int length) { _randomGenerator = new Random(DateTime.Now.Millisecond); _solvedData = new List<ICustomer>(); _carhopses = new List<Carhops>(); _globalList = new FutureEventList(); _isInitialized = true; _readerEngine = engine; _solverMethod = method; _caseLength = length; if (_readerEngine == ReaderEngine.Python) { _scriptReader = new PythonScriptReader(); } else if (_readerEngine == ReaderEngine.BuiltIn) { _scriptReader = new BuiltInFunctions(); } }