private void buttonDestroyPlayer_Click(object sender, EventArgs e) { timerForPlaying.Stop(); Log("StopTimer"); LibPlayer.DestroyPlayer(player); Log("DestroyPlayer"); }
private void Form1_FormClosing(object sender, FormClosingEventArgs e) { timerForPlaying.Stop(); Log("StopTimer"); LibPlayer.DestroyPlayer(player); Log("DestroyPlayer"); LibPlayer.DestroyRender(render); Log("DestroyRender"); }