Ejemplo n.º 1
0
 public YTPGenerator go(ProgressChangedEventHandler progressReporter, RunWorkerCompletedEventHandler completedReporter)
 {
     effectsFactory          = new EffectsFactory(toolBox); //hacky but works
     vidThreadWorker.DoWork += new DoWorkEventHandler(vidThread);
     vidThreadWorker.WorkerReportsProgress      = true;
     vidThreadWorker.WorkerSupportsCancellation = true;
     vidThreadWorker.ProgressChanged           += progressReporter;
     vidThreadWorker.RunWorkerCompleted        += completedReporter;
     vidThreadWorker.RunWorkerAsync();
     return(this);
 }
Ejemplo n.º 2
0
 public YTPGenerator go(ProgressChangedEventHandler progressReporter, RunWorkerCompletedEventHandler completedReporter)
 {
     effectsFactory = new EffectsFactory(toolBox); //hacky but works
     Console.WriteLine("My FFMPEG is: " + toolBox.FFMPEG);
     Console.WriteLine("My FFPROBE is: " + toolBox.FFPROBE);
     Console.WriteLine("My MAGICK is: " + toolBox.MAGICK);
     Console.WriteLine("My TEMP is: " + toolBox.TEMP);
     Console.WriteLine("My SOUNDS is: " + toolBox.SOUNDS);
     Console.WriteLine("My SOURCES is: " + toolBox.SOURCES);
     Console.WriteLine("My MUSIC is: " + toolBox.MUSIC);
     Console.WriteLine("My RESOURCES is: " + toolBox.RESOURCES);
     vidThreadWorker.DoWork += new DoWorkEventHandler(vidThread);
     vidThreadWorker.WorkerReportsProgress      = true;
     vidThreadWorker.WorkerSupportsCancellation = true;
     vidThreadWorker.ProgressChanged           += progressReporter;
     vidThreadWorker.RunWorkerCompleted        += completedReporter;
     vidThreadWorker.RunWorkerAsync();
     return(this);
 }