Exemple #1
0
    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;
            }
        });
    }
Exemple #2
0
    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;
            }
        });
    }