Ejemplo n.º 1
0
 public ModuleController(Lazy <ShellService> shellService, ISettingsService settingsService,
                         FileController fileController, WorkspaceController workspaceController, IFileService fileService,
                         Lazy <ShellViewModel> shellViewModel, ExportFactory <CodeEditorViewModel> codeEditorViewModelFactory, ExportFactory <InfoViewModel> infoViewModelFactory)
 {
     this.shellService               = shellService;
     this.settingsService            = settingsService;
     this.fileController             = fileController;
     this.workspaceController        = workspaceController;
     this.shellViewModel             = shellViewModel;
     this.codeEditorViewModelFactory = codeEditorViewModelFactory;
     this.infoViewModelFactory       = infoViewModelFactory;
     infoCommand        = new DelegateCommand(ShowInfo);
     documentDataModels = new SynchronizingCollection <DocumentDataModel, DocumentFile>(fileService.DocumentFiles, CreateDocumentDataModel);
 }
Ejemplo n.º 2
0
 public ModuleController(Lazy<ShellService> shellService, IEnvironmentService environmentService, ISettingsProvider settingsProvider, 
     FileController fileController, WorkspaceController workspaceController, IFileService fileService,
     Lazy<ShellViewModel> shellViewModel, ExportFactory<CodeEditorViewModel> codeEditorViewModelFactory, ExportFactory<InfoViewModel> infoViewModelFactory)
 {
     this.shellService = shellService;
     this.environmentService = environmentService;
     this.settingsProvider = settingsProvider;
     this.fileController = fileController;
     this.workspaceController = workspaceController;
     this.shellViewModel = shellViewModel;
     this.codeEditorViewModelFactory = codeEditorViewModelFactory;
     this.infoViewModelFactory = infoViewModelFactory;
     this.infoCommand = new DelegateCommand(ShowInfo);
     this.documentDataModels = new SynchronizingCollection<DocumentDataModel, DocumentFile>(fileService.DocumentFiles, CreateDocumentDataModel);
 }