mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
[Add Item to list view] - Minor Refactor
This commit is contained in:
parent
0d63370c10
commit
9b593a39bf
@ -58,12 +58,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