private void ShowChangeset(ChangesetModel changesetModel) { generalPane.OutputString(string.Format("Changeset {0}, {1}, {2}" + Environment.NewLine, changesetModel.Number, changesetModel.CreationDate, changesetModel.Committer)); generalPane.OutputString(changesetModel.Title + Environment.NewLine); var sortedServerItems = changesetModel.ServerItems.OrderBy(si => si).ToList(); foreach (string serverItem in sortedServerItems) { generalPane.OutputString(serverItem + Environment.NewLine); } generalPane.OutputString(Environment.NewLine); }
void OnChangesetVisit(object sender, ChangesetVisitEventArgs e) { var changesetModel = new ChangesetModel(); changesetModel.Number = e.Changeset.ChangesetId; changesetModel.Title = e.Changeset.Comment; changesetModel.CreationDate = e.Changeset.CreationDate; changesetModel.Committer = e.Committer; var serverItems = new List <string>(); foreach (string serverItem in e.LocalizedServerItems) { serverItems.Add(serverItem); } changesetModel.ServerItems = serverItems; changesets.Add(changesetModel); }
void OnChangesetVisit(object sender, ChangesetVisitEventArgs e) { var changesetModel = new ChangesetModel(); changesetModel.Number = e.Changeset.ChangesetId; changesetModel.Title = e.Changeset.Comment; changesetModel.CreationDate = e.Changeset.CreationDate; changesetModel.Committer = e.Committer; var serverItems = new List<string>(); foreach (string serverItem in e.LocalizedServerItems) { serverItems.Add(serverItem); } changesetModel.ServerItems = serverItems; changesets.Add(changesetModel); }