public string Build(string message, string command, LineEnum liner) { switch (liner) { case LineEnum.NoLine: message += command; break; case LineEnum.FirstLine: message = message + Line + command; break; case LineEnum.LastLine: message = message + command + Line; break; case LineEnum.FullLine: message = message + Line + command + Line; break; case LineEnum.Tab: message = message + Tab + command; break; case LineEnum.FirstLineWithTab: message = message + Line + Tab + command; break; case LineEnum.FullLineWithTab: message = message + Line + Tab + command + Line; break; case LineEnum.FirstLineWith2LastLine: message = message + Line + command + Line + Line; break; default: throw new Exception("Not Support"); } return(message); }
public void AppendAfterCommit(string command, LineEnum liner = LineEnum.NoLine) { AfterCommit = Build(AfterCommit, command, liner); }
public Line(LineEnum lineType) { _lineType = lineType; BackgroundColor = Color.Black; Initialize(); }
public void AppendBody(string command, LineEnum liner = LineEnum.NoLine) { Body = Build(Body, command, liner); }
public Line(LineEnum lineType, Color color) { _lineType = lineType; BackgroundColor = color; Initialize(); }