private void UpdateStatusPanel() { RTBox_Status.Clear(); if (controller_ == null) { return; } var comment_list = controller_.GetCommentList(); if (comment_list == null) { return; } var line_no_begin = CEditor_Main.FirstVisibleLine; var line_no_end = line_no_begin + CEditor_Main.LinesOnScreen; for (var line_no = line_no_begin; line_no < line_no_end; line_no++) { if (line_no >= comment_list.Length) { break; } if (comment_list[line_no] != null) { RTBox_Status.AppendText(comment_list[line_no].Message); } RTBox_Status.AppendText(Environment.NewLine); } }