mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 05:02:36 +01:00
Merge branch 'master' of https://github.com/SubtitleEdit/subtitleedit
This commit is contained in:
commit
3106a1b9a3
1
src/ui/Forms/BatchConvert.Designer.cs
generated
1
src/ui/Forms/BatchConvert.Designer.cs
generated
@ -1237,6 +1237,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
this.textBoxFilter.Name = "textBoxFilter";
|
||||
this.textBoxFilter.Size = new System.Drawing.Size(158, 20);
|
||||
this.textBoxFilter.TabIndex = 13;
|
||||
this.textBoxFilter.TextChanged += new System.EventHandler(this.textBoxFilter_TextChanged);
|
||||
//
|
||||
// labelFilter
|
||||
//
|
||||
|
@ -2700,6 +2700,29 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
textBoxFilter.Visible = comboBoxFilter.SelectedIndex == 3 || comboBoxFilter.SelectedIndex == 4 || comboBoxFilter.SelectedIndex == 5;
|
||||
}
|
||||
|
||||
private void textBoxFilter_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (listViewInputFiles.Items.Count == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (comboBoxFilter.SelectedIndex == 5)
|
||||
{
|
||||
var listViewItems = new List<ListViewItem>();
|
||||
foreach (ListViewItem item in listViewInputFiles.Items)
|
||||
{
|
||||
listViewItems.Add(item);
|
||||
}
|
||||
|
||||
listViewInputFiles.BeginUpdate();
|
||||
listViewInputFiles.Items.Clear();
|
||||
listViewInputFiles.Items.AddRange(listViewItems.FindAll(item => item.SubItems[2].Text.Contains(textBoxFilter.Text, StringComparison.OrdinalIgnoreCase)).ToArray());
|
||||
listViewInputFiles.EndUpdate();
|
||||
UpdateNumberOfFiles();
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonTransportStreamSettings_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (var form = new BatchConvertTsSettings())
|
||||
|
Loading…
Reference in New Issue
Block a user