Beispiel #1
0
 public bool IsMatch(CPPlotLog 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 CPPlotLogReadable(CPPlotLog cpPlotLog) : base(cpPlotLog)
        {
            this.CurrentBucket = "";
            if (cpPlotLog.CurrentTable == 0)
            {
                this.CurrentTable = "";
            }
            else
            {
                this.CurrentTable = cpPlotLog.CurrentTable + "/7";
            }

            switch (cpPlotLog.CurrentPhase)
            {
            case 1:
                this.CurrentPhase     = "1/5";
                this.CurrentPhasePart = cpPlotLog.CurrentPhasePart + "/" + CPPlotLog.P1PARTS;
                break;

            case 2:
                this.CurrentPhase     = "2/5";
                this.CurrentPhasePart = cpPlotLog.CurrentPhasePart + "/" + CPPlotLog.P2PARTS;
                break;

            case 3:
                this.CurrentPhase     = "3/5";
                this.CurrentPhasePart = cpPlotLog.CurrentPhasePart + "/" + CPPlotLog.P3PARTS;
                break;

            case 4:
                this.CurrentPhase     = "4/5";
                this.CurrentPhasePart = cpPlotLog.CurrentPhasePart + "/" + CPPlotLog.P4PARTS;
                break;

            case 5:
                this.CurrentPhase     = "5/5";
                this.CurrentPhasePart = "";
                break;

            case 6:
                this.CurrentPhase     = "";
                this.CurrentPhasePart = "";
                break;
            }
        }