public ModpackViewModel(MainWindowViewModel mainWindow, RtdxRomViewModel viewModel)
 {
     this.mainWindow = mainWindow ?? throw new ArgumentNullException(nameof(mainWindow));
     this.viewModel = viewModel ?? throw new ArgumentNullException(nameof(viewModel));
     OpenModpackCommand = ReactiveCommand.CreateFromTask(() => OpenModpack());
     CustomizeRomCommand = ReactiveCommand.CreateFromTask(() => CustomizeRom());
 }
Beispiel #2
0
 public CustomizeRomViewModel(MainWindowViewModel mainWindow, RtdxRomViewModel viewModel)
 {
     this.mainWindow   = mainWindow ?? throw new ArgumentNullException(nameof(mainWindow));
     this.RomViewModel = viewModel ?? throw new ArgumentNullException(nameof(viewModel));
     SaveAtmosphereLayeredFsCommand = ReactiveCommand.CreateFromTask(() => SaveAtmosphereLayeredFs());
 }