public PopulateDefaultSpriteViewModel(IDialogService dialogService, string initFile) { RomDropHandler = new RomDropHandler(); File = initFile; RomDropHandler.FileDropped += f => { File = f; }; FilePickerCommand = new RelayCommand(() => { if (dialogService.RequestRomFile(out string file)) { File = file; } }); }
public ModCreationViewModel(IDialogService dialogService, string initFile) { ModInfo = new ModInfo(); RomDropHandler = new RomDropHandler(); File = initFile; RomDropHandler.FileDropped += f => { File = f; }; FilePickerCommand = new RelayCommand(() => { if (dialogService.RequestRomFile(out string file)) { File = file; } }); }