Minor refact

This commit is contained in:
ivandroly 2015-07-04 18:29:55 +00:00
parent 29fb5d87b2
commit 36a6041460

View File

@ -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)