private Boolean CheckImages() { List <String> images = new List <string>(); JobsWorker.getFileList(images, folderBrowserDialog1.SelectedPath); if (images.Count == 0) { MessageBox.Show("Please select dirctory with background pictuares", "Background not exists"); return(false); } return(true); }
public void OnStart() { imageDirectory = ConfigurationManager.AppSettings["ImageDirectory"]; style = ConfigurationManager.AppSettings["Style"]; string time = ConfigurationManager.AppSettings["TimeOut"]; int tmp = 0; int.TryParse(time, out tmp); if (tmp == 0) { tmp = 60 * 1000 * 60; } else { tmp = tmp * 60 * 1000; } timeOut = tmp; IdentifyQueryBackground param = new IdentifyQueryBackground(imageDirectory, style, timeOut); JobsWorker.StartBackgowndWorkProcess(param); }
public void OnStop() { JobsWorker.StopBackgowndWorkProcess(); }