public FramesCaptureProgressDialog(FramesSeriesCapturer capturer)
 {
     this.Build();
     this.Deletable = false;
     this.capturer = capturer;
     capturer.Progress += Update;
     capturer.Start();
 }
 public FramesCaptureProgressDialog(FramesSeriesCapturer capturer, Gtk.Window parent)
 {
     TransientFor = parent;
     this.Build ();
     this.Deletable = false;
     this.capturer = capturer;
     capturer.Progress += Update;
     capturer.Start ();
 }
        public void ExportFrameSeries(Project openedProject, Play play, string snapshotsDir)
        {
            SnapshotsDialog sd;
            uint interval;
            string seriesName;
            string outDir;

            sd= new SnapshotsDialog();
            sd.TransientFor= mainWindow as Gtk.Window;
            sd.Play = play.Name;

            if(sd.Run() == (int)ResponseType.Ok) {
                sd.Destroy();
                interval = sd.Interval;
                seriesName = sd.SeriesName;
                outDir = System.IO.Path.Combine(snapshotsDir, seriesName);
                var fsc = new FramesSeriesCapturer(openedProject.Description.File.FilePath,
                                               play.Start.MSeconds, play.Stop.MSeconds,
                                               interval, outDir);
                var fcpd = new FramesCaptureProgressDialog(fsc);
                fcpd.TransientFor = mainWindow as Gtk.Window;
                fcpd.Run();
                fcpd.Destroy();
            }
            else
                sd.Destroy();
        }