public bool Search(Document type, string document) { document = document.Replace("_", ""); document = document.Replace(".", ""); document = document.Replace("/", ""); document = document.Replace("-", ""); if (String.IsNullOrWhiteSpace(document)) { return(false); } /*try * {*/ string file = (type == Document.CNPJ) ? fileCNPJ : fileCPF; int exitCod = RunUtil.Run(file, document, true); if (exitCod == 2) { if (GetCurrentDocument() && (!String.IsNullOrEmpty(NCNPJ) || !String.IsNullOrEmpty(NCPF))) { return(true); } } return(false); /*} * catch (Exception ex) * { * throw new Exception(ex.Message, ex.InnerException); * }*/ }
public static void Main() { WebServerWrapper.InitializeWebEndPoints(new ArrayList { new SprinklerEndPoint() }); WebServerWrapper.StartWebServer(2456, false); RunUtil.KeepRunning(); }
public static void Main() { LcdWriter.Instance.Write("Web Demo Ready! " + DateTime.Now.TimeOfDay); WebServerWrapper.InitializeWebEndPoints(new ArrayList { new BasicPage(), new ButtonWeb() }); WebServerWrapper.StartWebServer(); RunUtil.KeepRunning(); }