public RaymanDesignerProgressionSlotViewModel(ProgressionGameViewModel game, LocalizedString?name, int index, int collectiblesCount, int totalCollectiblesCount, IEnumerable <ProgressionDataViewModel> dataItems, Dictionary <string, int> levelTimes, FileSystemPath saveDir) : base(game, name, index, collectiblesCount, totalCollectiblesCount, dataItems) { LevelTimes = levelTimes; SaveDir = saveDir; CanExport = true; CanImport = false; }
public SerializableProgressionSlotViewModel(ProgressionGameViewModel game, LocalizedString?name, int index, int collectiblesCount, int totalCollectiblesCount, IEnumerable <ProgressionDataViewModel> dataItems, Context context, FileObj serializable, string fileName) : base(game, name, index, collectiblesCount, totalCollectiblesCount, dataItems) { Context = context; Serializable = serializable; FileName = fileName; FilePath = Context.GetAbsoluteFilePath(fileName); CanExport = true; CanImport = true; }
public ProgressionSlotViewModel(ProgressionGameViewModel game, LocalizedString?name, int index, double percentage, IEnumerable <ProgressionDataViewModel> dataItems) { Game = game; Name = name ?? new ResourceLocString(Resources.Progression_GenericSlot, index + 1); Index = index; CollectiblesCount = null; TotalCollectiblesCount = null; Percentage = percentage; DataItems = new ObservableCollection <ProgressionDataViewModel>(dataItems); PrimaryDataItems = new ObservableCollection <ProgressionDataViewModel>(DataItems.Where(x => x.IsPrimaryItem)); Is100Percent = percentage >= 100; ExportCommand = new AsyncRelayCommand(ExportAsync); ImportCommand = new AsyncRelayCommand(ImportAsync); EditCommand = new AsyncRelayCommand(EditAsync); OpenLocationCommand = new AsyncRelayCommand(OpenLocationAsync); }