コード例 #1
0
        private string getRefreshed(MergeRequestKey key, bool tooltipText)
        {
            DateTime?refreshedTime = getRefreshedTime(key);

            return(tooltipText ? TimeUtils.DateTimeOptToString(refreshedTime)
                            : TimeUtils.DateTimeOptToStringAgo(refreshedTime));
        }
コード例 #2
0
        private string getActivities(DateTime createdAt, MergeRequestKey key, bool tooltipText)
        {
            DateTime?latestCommitTime = getLatestCommitTime(key);

            return(String.Format("Created: {0}\r\nLatest commit: {1}",
                                 tooltipText ? TimeUtils.DateTimeToString(createdAt)
                        : TimeUtils.DateTimeToStringAgo(createdAt),
                                 tooltipText ? TimeUtils.DateTimeOptToString(latestCommitTime)
                        : TimeUtils.DateTimeOptToStringAgo(latestCommitTime)));
        }