mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
[internal] - minor refactor add item to listview
This commit is contained in:
parent
b3489ea40e
commit
1c9b09ceb0
@ -61,12 +61,8 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
private void AddToListView(Paragraph p, string lineNumbers, string newText)
|
||||
{
|
||||
var item = new ListViewItem(string.Empty) { Tag = p, Checked = true };
|
||||
|
||||
var subItem = new ListViewItem.ListViewSubItem(item, lineNumbers.TrimEnd(','));
|
||||
item.SubItems.Add(subItem);
|
||||
subItem = new ListViewItem.ListViewSubItem(item, newText.Replace(Environment.NewLine, Configuration.Settings.General.ListViewLineSeparatorString));
|
||||
item.SubItems.Add(subItem);
|
||||
|
||||
item.SubItems.Add(lineNumbers.TrimEnd(','));
|
||||
item.SubItems.Add(newText.Replace(Environment.NewLine, Configuration.Settings.General.ListViewLineSeparatorString));
|
||||
listViewFixes.Items.Add(item);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user