public bool Handle(object sender, ProcessLineEventArgs e) { Match match = this.Regex.Match(e.Line); e.Match = match; if (match.Success) { _handler(this, e); return true; } else { return false; } }
public bool Handle(object sender, ProcessLineEventArgs e) { Match match = this.Regex.Match(e.Line); e.Match = match; if (match.Success) { _handler(this, e); return(true); } else { return(false); } }
private LineHandler ParseUserHandHistoryLine(FileInfo file, string line, long index) { ProcessLineEventArgs e = new ProcessLineEventArgs(); e.File = file; e.Line = line; e.Index = index; e.Parser = this; foreach (LineHandler handler in LineHandlers.Handlers) { if (handler.Handle(this, e)) { return(handler); } } return(null); }
private LineHandler ParseUserHandHistoryLine(FileInfo file, string line, long index) { ProcessLineEventArgs e = new ProcessLineEventArgs(); e.File = file; e.Line = line; e.Index = index; e.Parser = this; foreach (LineHandler handler in LineHandlers.Handlers) { if (handler.Handle(this, e)) { return handler; } } return null; }