public DisplayCollectionViewModel(IChooseFileNameService chooseFileNameService, IOpenFileService openFileService, IOpenSimulationService openSimulationService, ICanCloseService canCloseService, ISaveFileService saveFileService) { _chooseFileNameService = chooseFileNameService; _openFileService = openFileService; _openSimulationService = openSimulationService; _canCloseService = canCloseService; _saveFileService = saveFileService; _openFileService.OpenFile += (s, e) => openFile(e.Path, e.Index, e.IndexIsObjectIndex); _openSimulationService.OpenSimulation += (s, e) => openSimulation(e.Simulation); _canCloseService.CloseMe += (s, e) => Models.Remove(s as ClosableViewModel); }
public ClosableViewModel(ICanCloseService canCloseService) { _canCloseService = canCloseService; }
public FileViewModel(ICanCloseService canCloseService, ISaveFileService saveFileService) : base(canCloseService) { _saveFileService = saveFileService; }