public VideoWrapLatexModel(VideoWrap wrap) { Wrap = wrap; Edit = new RelayCommand( ()=>{ if (Source!=null) Process.Start("\""+Source.OriginalFile+"\""); }, ()=>Source!=null); }
public YoutubeVideoCommands(YoutubeSource source, VideoWrap wrap) : base(source, wrap) { InitializeDueNames(); Commands.Add(new VisualCommand(new RelayCommand(CmGo, () => YoutubeClip != null), "view.png")); Commands.Add(new VisualCommand(new RelayCommand(CmPush, () => YoutubeClip != null), "upload.png")); Commands.Add(new VisualCommand(new RelayCommand(CmThumbnail, () => YoutubeClip != null), "thumbnail.png")); }
public ULearnVideoCommands(ULearnSource source, VideoWrap wrap) : base(source, wrap) { Commands.Add(new VisualCommand(Compile, () => true, "compile.png")); Commands.Add(new VisualCommand(() => Process.Start("\"" + Source.FileForSlide(Wrap).FullName + "\""), () => true, "view.png")); }
public ICommandBlockModel ForVideo(VideoWrap wrap) { return(new YoutubeVideoCommands(this, wrap)); }
public ICommandBlockModel ForVideo(VideoWrap wrap) { return(new ULearnVideoCommands(this, wrap)); }
public FileInfo FileForSlide(VideoWrap wrap) { return(new FileInfo(Path.Combine( DirectoryForLecture(wrap.Parent as LectureWrap).FullName, string.Format("{0} - {1}.cs", FilePrefixForSlide(wrap), wrap.Caption)))); }
public string FilePrefixForSlide(VideoWrap wrap) { return(string.Format("S{0:D3}", (wrap.NumberInTopic + 1) * 10)); }
public ICommandBlockModel ForVideo(VideoWrap wrap) { return new YoutubeVideoCommands(this,wrap); }
public ICommandBlockModel ForVideo(VideoWrap wrap) { return new ULearnVideoCommands(this, wrap); }
public string FilePrefixForSlide(VideoWrap wrap) { return string.Format("S{0:D3}", (wrap.NumberInTopic + 1) * 10); }
public FileInfo FileForSlide(VideoWrap wrap) { return new FileInfo(Path.Combine( DirectoryForLecture(wrap.Parent as LectureWrap).FullName, string.Format("{0} - {1}.cs", FilePrefixForSlide(wrap), wrap.Caption))); }
public VideoCommandBlockModel(TSource source, VideoWrap item) : base(source, item) { }