static void OpenModel(string name) { publishingModel = videotheque.PublishingModels.Where(z => z.Location.Name == name + "." + Names.PublishingModelExtension).FirstOrDefault(); if (publishingModel == null) { publishingModel = videotheque.CreateNewPublishingModel(name); } }
public MainViewModel(Videotheque videotheque, PublishingModel model, Func <IEnumerable <IMaterialSource> > sourcesFactory) { this.Model = model; this.sourcesFactory = sourcesFactory; UpdateVideoCommand = new RelayCommand(UpdateVideo); SaveCommand = new RelayCommand(Save); Reload(); }
public void Initialize(PublishingModel model) { this.Model = model; }