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()); }
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()); }