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)); }
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)); //} }
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)); //} }
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(); }