Esempio n. 1
0
 public BatchTool(String initaldir, fpstype cameratypein, bool recursive, bool overwritefiles, bool showtime)
 {
     startdir = initaldir;
     cameratype = cameratypein;
     isrecursive = recursive;
     overwrite = overwritefiles;
     showsubtime = showtime;
     //processdirectory(new DirectoryInfo(initaldir));
 }
Esempio n. 2
0
 public BatchTool(String initaldir, fpstype cameratypein, bool recursive, bool overwritefiles, bool showtime)
 {
     startdir    = initaldir;
     cameratype  = cameratypein;
     isrecursive = recursive;
     overwrite   = overwritefiles;
     showsubtime = showtime;
     //processdirectory(new DirectoryInfo(initaldir));
 }
Esempio n. 3
0
 public BatchTool(List<String> directorylist, fpstype cameratypein, bool recursive, bool overwritefiles, bool showtime)
 {
     dirlist = directorylist;
     cameratype = cameratypein;
     isrecursive = recursive;
     overwrite = overwritefiles;
     showsubtime = showtime;
     //foreach (String nextdirectory in directorylist)
     //{
     //    if (!isactive) break;
     //    processdirectory(new DirectoryInfo (nextdirectory));
     //}
 }
Esempio n. 4
0
 public BatchTool(List <String> directorylist, fpstype cameratypein, bool recursive, bool overwritefiles, bool showtime)
 {
     dirlist     = directorylist;
     cameratype  = cameratypein;
     isrecursive = recursive;
     overwrite   = overwritefiles;
     showsubtime = showtime;
     //foreach (String nextdirectory in directorylist)
     //{
     //    if (!isactive) break;
     //    processdirectory(new DirectoryInfo (nextdirectory));
     //}
 }
Esempio n. 5
0
        private void processdirectory(String dirstring)
        {
            fpstype camtype = fpstype.Type1;

            if (rb_type0.Checked == true)
            {
                camtype = fpstype.Type0;
            }
            if (rb_type1.Checked == true)
            {
                camtype = fpstype.Type1;
            }
            newbatch = new BatchTool(dirstring, camtype, cb_recursive.Checked, cb_overwrite.Checked, cb_showtime.Checked);
            newbatch.OnSubgenResult    += new BatchTool.SubGenResultHandler(fileprocessed);
            newbatch.OnDirectoryChange += new BatchTool.SubGenDirectoryChanged(directoryevent);

            newbatch.ProcessVideoDirectory();
        }