public override string ToString() { return(String.Format("[{0}] {1} {12} [{2}] {3}-{4} {5}-{6} [{7},{8},{9},{10} {11}] ", Id.ToString().PadLeft(3, ' '), Name, Duration.ToString().PadLeft(3, ' '), EarlyStartDate.ToShortDateString(), EarlyFinishDate.ToShortDateString(), LatestStartDate.ToShortDateString(), LatestFinishDate.ToShortDateString(), EarlyStart.ToString().PadLeft(3, ' '), EarlyFinish.ToString().PadLeft(3, ' '), LatestStart.ToString().PadLeft(3, ' '), LatestFinish.ToString().PadLeft(3, ' '), Slack.ToString().PadLeft(3, ' '), DisplayOrder.ToString().PadLeft(4, ' ') )); }
public override string ToString() { return(String.Format("[{0}] edit:{5} idParent:{1} d{2} r{3} d.{4} [{6}-{7}", IdActivity.ToString().PadLeft(3, ' '), IdParent.ToString().PadLeft(3, ' '), RowNumber.ToString().PadLeft(3, ' '), DisplayOrder.ToString().PadLeft(4, ' '), InEditMode.ToString().PadLeft(4, ' '), (EarlyStartDate.GetValue().HasValue ? EarlyStartDate.GetValue().Value.ToShortDateString() : ""), (EarlyFinishDate.GetValue().HasValue ? EarlyFinishDate.GetValue().Value.ToShortDateString() : "") )); }