Ejemplo n.º 1
0
        public VideoWrapLatexModel(VideoWrap wrap)
		{
			Wrap = wrap;
			Edit = new RelayCommand(
				()=>{ if (Source!=null) Process.Start("\""+Source.OriginalFile+"\""); },
				()=>Source!=null);
		}
Ejemplo n.º 2
0
 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"));
 }
Ejemplo n.º 3
0
 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"));
 }
Ejemplo n.º 4
0
 public ICommandBlockModel ForVideo(VideoWrap wrap)
 {
     return(new YoutubeVideoCommands(this, wrap));
 }
Ejemplo n.º 5
0
 public ICommandBlockModel ForVideo(VideoWrap wrap)
 {
     return(new ULearnVideoCommands(this, wrap));
 }
Ejemplo n.º 6
0
 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))));
 }
Ejemplo n.º 7
0
 public string FilePrefixForSlide(VideoWrap wrap)
 {
     return(string.Format("S{0:D3}", (wrap.NumberInTopic + 1) * 10));
 }
Ejemplo n.º 8
0
 public ICommandBlockModel ForVideo(VideoWrap wrap)
 {
     return new YoutubeVideoCommands(this,wrap);
 }
Ejemplo n.º 9
0
 public ICommandBlockModel ForVideo(VideoWrap wrap)
 {
     return new ULearnVideoCommands(this, wrap);
 }
Ejemplo n.º 10
0
 public string FilePrefixForSlide(VideoWrap wrap)
 {
     return string.Format("S{0:D3}", (wrap.NumberInTopic + 1) * 10);
 }
Ejemplo n.º 11
0
 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)));
 }
Ejemplo n.º 12
0
 public VideoCommandBlockModel(TSource source, VideoWrap item) : base(source, item)
 {
 }