protected override void OnClosing(CancelEventArgs e) { base.OnClosing(e); _timer?.Dispose(); Player?.StopPlayback(); Player?.Dispose(); Player = null; (Owner as MainForm)?.SetSecondForm(null); }