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
            };
        }
Пример #3
0
 public static Task ShotAndApply(TrackSkinObject track)
 {
     return(ShotAndApply(track.PreviewImage, track.Enabled, () => QuickDrive.RunAsync(trackSkin: track)));
 }
Пример #4
0
 public static Task ApplyExisting(TrackSkinObject trackSkin)
 {
     return(ApplyExisting(trackSkin.PreviewImage));
 }