Beispiel #1
0
 public bool IsMatch(PlotLog plotLog)
 {
     if (!string.Equals(this.LogFolder, plotLog.LogFolder)) return false;
     string logFileName = plotLog.LogFile.Substring(plotLog.LogFile.LastIndexOf(Path.DirectorySeparatorChar) + 1);
     if (!string.Equals(this.LogFile, logFileName)) return false;
     return true;
 }
        public bool IsMatch(PlotLog plotLog)
        {
            if (!string.Equals(this.LogFolder, plotLog.LogFolder))
            {
                return(false);
            }
            string logFileName = plotLog.LogFile.Substring(plotLog.LogFile.LastIndexOf(Path.DirectorySeparatorChar) + 1);

            if (!string.Equals(this.LogFile, logFileName))
            {
                return(false);
            }
            if (this.PlaceInLogFile != plotLog.PlaceInLogFile)
            {
                return(false);
            }
            return(true);
        }