mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 11:42:36 +01:00
Minor refact
This commit is contained in:
parent
29fb5d87b2
commit
36a6041460
@ -4618,19 +4618,17 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
if (s.Length < Configuration.Settings.General.SubtitleLineMaximumLength * 1.9)
|
||||
{
|
||||
labelTextLineTotal.ForeColor = Color.Black;
|
||||
labelTextLineTotal.Text = string.Format(_languageGeneral.TotalLengthX, s.Length);
|
||||
}
|
||||
else if (s.Length < Configuration.Settings.General.SubtitleLineMaximumLength * 2.1)
|
||||
{
|
||||
labelTextLineTotal.ForeColor = Color.Orange;
|
||||
labelTextLineTotal.Text = string.Format(_languageGeneral.TotalLengthX, s.Length);
|
||||
}
|
||||
else
|
||||
{
|
||||
labelTextLineTotal.ForeColor = Color.Red;
|
||||
labelTextLineTotal.Text = string.Format(_languageGeneral.TotalLengthX, s.Length);
|
||||
buttonSplitLine.Visible = true;
|
||||
}
|
||||
labelTextLineTotal.Text = string.Format(_languageGeneral.TotalLengthX, s.Length);
|
||||
}
|
||||
|
||||
private void ButtonFixesSelectAllClick(object sender, EventArgs e)
|
||||
|
Loading…
Reference in New Issue
Block a user