public ViewModel(TrackObject track, TrackSkinObject trackSkin, IEnumerable <TextureEntry> images) { Track = track; TrackSkin = trackSkin; Images = new ChangeableObservableCollection <TextureEntry>(images); Images.ItemPropertyChanged += OnItemPropertyChanged; UpdateSummary(); }
private TrackSkinTexturesDialog(TrackObject track, TrackSkinObject trackSkin, IEnumerable <TextureEntry> images) { DataContext = new ViewModel(track, trackSkin, images); InitializeComponent(); Buttons = new[] { CreateCloseDialogButton("Override", true, false, MessageBoxResult.OK, Model.SaveCommand), CancelButton }; }
public static Task ShotAndApply(TrackSkinObject track) { return(ShotAndApply(track.PreviewImage, track.Enabled, () => QuickDrive.RunAsync(trackSkin: track))); }
public static Task ApplyExisting(TrackSkinObject trackSkin) { return(ApplyExisting(trackSkin.PreviewImage)); }