private void MaximizeVideo()
{
var screenArea = Screen.FromControl(this).WorkingArea;
var videoSize = this.Size;
if (screenArea.Size.Width > videoSize.Width && screenArea.Height > videoSize.Height)
{
videoSize = new Size(1920, 1080);
}
this.SetBounds(
(screenArea.Width - videoSize.Width) / 2,
(screenArea.Height - videoSize.Height) / 2,
videoSize.Width,
videoSize.Height);
}