示例#1
0
 static void OpenModel(string name)
 {
     publishingModel = videotheque.PublishingModels.Where(z => z.Location.Name == name + "." + Names.PublishingModelExtension).FirstOrDefault();
     if (publishingModel == null)
     {
         publishingModel = videotheque.CreateNewPublishingModel(name);
     }
 }
示例#2
0
        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();
        }
示例#3
0
 public void Initialize(PublishingModel model)
 {
     this.Model = model;
 }