public void initialize() { // Initialize graphics device service _graphicsDeviceService = GraphicsDeviceService.AddRef(view.Handle, view.Width, view.Height); // Initialize core resource controller ResourceManager.initialize(_graphicsDeviceService.GraphicsDevice); ResourceManager.rootDirectory = resourcesSourcePath + "\\"; // Create controllers _levelController = new LevelController(this, _editorView.levelView); _materialController = new MaterialController(this, _editorView.materialView); _blueprintController = new BlueprintController(this, _editorView.blueprintView); _circuitController = new CircuitController(this, _editorView.circuitsView); _backgroundController = new BackgroundController(this, _editorView.backgroundView); }
// Set controller public void setController(BlueprintController controller) { _controller = controller; blueprintList.DataSource = _controller.blueprints; }