private void createControllers(ILifetimeScope scope) { _configController = scope.Resolve <ConfigController>(); _exportController = scope.Resolve <GUIExportController>(); _animationController = scope.Resolve <AnimationController>(); _treeController = scope.Resolve <TreeController>(); _vramController = scope.Resolve <VRAMController>(); _cameraController = scope.Resolve <CameraController>(); _fileOpenController = scope.Resolve <FileOpenController>(); _updateCheckerController = scope.Resolve <UpdateCheckerController>(); }
public MainMenuBar(FileOpenController fileOpenController, VRAMController vramController, ConfigController configController, CameraController cameraController) { _configController = configController; _streamingAssetsPathFieldValue = _configController.Config.StreamingAssetsPath; _openDialog = new FileDialog(_configController.Config.StreamingAssetsPath, FileDialog.DialogType.Open); _openVramDialog = new FileDialog(_configController.Config.StreamingAssetsPath, FileDialog.DialogType.Open); _fileOpenController = fileOpenController; _vramController = vramController; _cameraController = cameraController; _configController.Config.OnStreamingAssetsPathChange += () => _openDialog.InitialDir = _configController.Config.StreamingAssetsPath; _configController.Config.OnStreamingAssetsPathChange += () => _openVramDialog.InitialDir = _configController.Config.StreamingAssetsPath; }
private void createControllers() { _configController = new ConfigController(); _exportFileDialog = new FileDialog(_configController.Config.StreamingAssetsPath, FileDialog.DialogType.Save); _exportController = new ExportController(_exportFileDialog, _configController); _animationController = new AnimationController(); _treeController = new TreeController(_animationController, _exportController); _vramController = new VRAMController(_exportController); _cameraController = new CameraController(_cam); _tmdController = new TMDController(_treeController, _vramController); _momController = new MOMController(_treeController, _vramController, _tmdController); _lbdController = new LBDController(_treeController, _vramController, _tmdController, _momController); _timController = new TIMController(_treeController); _tixController = new TIXController(_treeController, _timController); _fileOpenController = new FileOpenController(_lbdController, _tmdController, _momController, _timController, _tixController, _configController); _updateCheckerController = new UpdateCheckerController(_updateAvailableModal); }