コード例 #1
0
 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);
 }
コード例 #2
0
 public ClosableViewModel(ICanCloseService canCloseService)
 {
     _canCloseService = canCloseService;
 }
コード例 #3
0
 public FileViewModel(ICanCloseService canCloseService, ISaveFileService saveFileService)
     : base(canCloseService)
 {
     _saveFileService = saveFileService;
 }