More on last commit

This commit is contained in:
niksedk 2023-04-07 11:08:59 +02:00
parent 8312edac43
commit 566c52aabb

View File

@ -1095,7 +1095,7 @@ namespace Nikse.SubtitleEdit.Forms.Styles
private static string GetSsaColorString(Color c)
{
return Color.FromArgb(0, c.B, c.G, c.R).ToArgb().ToString(); ;
return Color.FromArgb(0, c.B, c.G, c.R).ToArgb().ToString();
}
private void buttonCopy_Click(object sender, EventArgs e)
@ -1143,19 +1143,6 @@ namespace Nikse.SubtitleEdit.Forms.Styles
_currentFileStyles.Remove(_currentFileStyles.Find(p => p.Name == name));
}
private void ReplaceStyleInHeader(SsaStyle style)
{
var hit = _currentFileStyles.Find(p => p.Name == style.Name);
if (hit == null)
{
return;
}
var index = _currentFileStyles.IndexOf(hit);
_currentFileStyles.RemoveAt(index);
_currentFileStyles.Insert(index, style);
}
private void buttonAdd_Click(object sender, EventArgs e)
{
var name = LanguageSettings.Current.SubStationAlphaStyles.New;
@ -1237,7 +1224,7 @@ namespace Nikse.SubtitleEdit.Forms.Styles
foreach (ListViewItem selectedItem in listViewStyles.SelectedItems)
{
var name = selectedItem.Text;
var currentStyle = _currentFileStyles.FirstOrDefault(p => p.Name == name);
if (currentStyle != null)
{
@ -1522,11 +1509,6 @@ namespace Nikse.SubtitleEdit.Forms.Styles
SetLastColumnWidth();
}
private void listViewStorage_ClientSizeChanged(object sender, EventArgs e)
{
SetLastColumnWidth();
}
private void SubStationAlphaStyles_ResizeEnd(object sender, EventArgs e)
{
_backgroundImage?.Dispose();