public void ModifyBlackBands(Rectangle[] borders, Color videoBackgroundColor)
{
if (!this.UseBlackBands)
this.UseBlackBands = true;
if (borders.Length >= 2)
{
for (int i = 0; i < 2; i++)
{
Control control = this.blackBands[i];
if (control != null)
{
if (!control.Visible) control.Visible = true;
if (control.BackColor != videoBackgroundColor)
control.BackColor = videoBackgroundColor;
if (control.Location.X != borders[i].X || control.Location.Y != borders[i].Y)
control.Location = new System.Drawing.Point(borders[i].X, borders[i].Y);
if (control.Size.Width + 1 != borders[i].Width + 1 || control.Size.Height + 1 != borders[i].Height + 1)
control.Size = new System.Drawing.Size(borders[i].Width + 1, borders[i].Height + 1);
}
}
}
}