private void EditComment(LogRow logRow) { string comment = logRow.Comment; StringBuilder sb = new StringBuilder(); sb.Append(string.IsNullOrEmpty(comment) ? "Add a" : "Edit the"); sb.Append(" comment for the \"").Append(logRow.PeerGroupName).Append("\" failure that started at "); sb.Append(logRow.FailStarted).Append(':'); comment = WindowsUtility.ShowInputBox(this, sb.ToString(), null, comment); if (comment != null) { using (new WaitCursor()) { logRow.Comment = comment; this.logger?.AddFailureComment(logRow.PeerGroupName, this.stateManager.LastUpdated, logRow.FailureId, comment); } } this.TryFocus(this.logGrid); }