public Dispatcher(IErrorDisplayer errorDisplayer, IResultDisplayer resultDisplayer, ISolverFactory solverFactory, ITriangleChecker triangleChecker, ITriangleReader triangleReader) { _errorDisplayer = errorDisplayer; _resultDisplayer = resultDisplayer; _solverFactory = solverFactory; _triangleChecker = triangleChecker; _triangleReader = triangleReader; }
private void InitializeApplication(IErrorDisplayer errorDisplayer, string[] args) { if (args.Length == 2 && args[0].ToLower().Equals("-cfgpath") && File.Exists(args[1])) { configLoader = new ConfigurationLoader(errorDisplayer, args[1]); } else { configLoader = new ConfigurationLoader(errorDisplayer); } config = configLoader.LoadConfig(); }
public ConfigurationLoader(IErrorDisplayer errorDelegate, string configPath) { this.errorViewDelegate = errorDelegate; this.cfgPath = configPath; }
public ConfigurationLoader(IErrorDisplayer errorDelegate) : this(errorDelegate, defaultConfigPath) { }