Minor UI improvements

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@271 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2011-01-21 14:01:16 +00:00
parent a2d212dd95
commit 69be8e1365
2 changed files with 14 additions and 0 deletions

View File

@ -216,6 +216,7 @@
this.comboBoxLineContinuationBegin.Name = "comboBoxLineContinuationBegin";
this.comboBoxLineContinuationBegin.Size = new System.Drawing.Size(80, 21);
this.comboBoxLineContinuationBegin.TabIndex = 2;
this.comboBoxLineContinuationBegin.SelectedIndexChanged += new System.EventHandler(this.ContinuationBeginEndChanged);
//
// labelLineContinuationBeginEnd
//
@ -236,6 +237,7 @@
this.comboBoxLineContinuationEnd.Name = "comboBoxLineContinuationEnd";
this.comboBoxLineContinuationEnd.Size = new System.Drawing.Size(80, 21);
this.comboBoxLineContinuationEnd.TabIndex = 3;
this.comboBoxLineContinuationEnd.SelectedIndexChanged += new System.EventHandler(this.ContinuationBeginEndChanged);
//
// SubtitleListview1
//

View File

@ -355,5 +355,17 @@ namespace Nikse.SubtitleEdit.Forms
SubtitleListview1.SelectIndexAndEnsureVisible(index);
}
private void ContinuationBeginEndChanged(object sender, EventArgs e)
{
Cursor = Cursors.WaitCursor;
int index = -1;
if (listViewFixes.SelectedItems.Count > 0)
index = listViewFixes.SelectedItems[0].Index;
GeneratePreview(true);
if (index >= 0)
listViewFixes.Items[index].Selected = true;
Cursor = Cursors.Default;
}
}
}