Add click handler, remove unused imports

This commit is contained in:
Martijn van Berkel (Flitskikker) 2024-02-14 18:04:31 +01:00
parent d301010918
commit 535da8ebe0
2 changed files with 7 additions and 8 deletions

View File

@ -78,6 +78,7 @@
this.listView.UseCompatibleStateImageBehavior = false; this.listView.UseCompatibleStateImageBehavior = false;
this.listView.View = System.Windows.Forms.View.Details; this.listView.View = System.Windows.Forms.View.Details;
this.listView.SelectedIndexChanged += new System.EventHandler(this.listView_SelectedIndexChanged); this.listView.SelectedIndexChanged += new System.EventHandler(this.listView_SelectedIndexChanged);
this.listView.Click += new System.EventHandler(this.listView_Click);
// //
// columnHeaderParagraphs // columnHeaderParagraphs
// //

View File

@ -1,14 +1,7 @@
using Nikse.SubtitleEdit.Controls; using Nikse.SubtitleEdit.Core.Common;
using Nikse.SubtitleEdit.Core.Common;
using Nikse.SubtitleEdit.Logic; using Nikse.SubtitleEdit.Logic;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using static Nikse.SubtitleEdit.Forms.BeautifyTimeCodes.BeautifyTimeCodes; using static Nikse.SubtitleEdit.Forms.BeautifyTimeCodes.BeautifyTimeCodes;
@ -76,5 +69,10 @@ namespace Nikse.SubtitleEdit.Forms.BeautifyTimeCodes
_selectParagraphAction.Invoke(pair.rightParagraph); _selectParagraphAction.Invoke(pair.rightParagraph);
} }
} }
private void listView_Click(object sender, EventArgs e)
{
listView_SelectedIndexChanged(sender, e);
}
} }
} }