protected void RaiseProgress(ParserProgressStage stage, int percent) { if (Progress != null) { Progress(this, new ParserProgressEventArgs(stage, percent)); } }
private string StageToString(ParserProgressStage stage) { switch (stage) { case ParserProgressStage.CreatingChunks: return("Marking event blocks"); case ParserProgressStage.ParsingChunks: return("Parsing event blocks"); case ParserProgressStage.Formatting: return("Formatting events"); default: return(stage.ToString()); } }
public ParserProgressEventArgs(ParserProgressStage stage, int percent) { Stage = stage; Percentage = percent; }
protected void RaiseProgress(ParserProgressStage stage, int percent) { if(Progress != null) Progress(this, new ParserProgressEventArgs(stage, percent)); }
private string StageToString(ParserProgressStage stage) { switch(stage) { case ParserProgressStage.CreatingChunks: return "Marking event blocks"; case ParserProgressStage.ParsingChunks: return "Parsing event blocks"; case ParserProgressStage.Formatting: return "Formatting events"; default: return stage.ToString(); } }