protected void OnButtonPlayClicked(object sender, System.EventArgs e)
{
if (_play != null)
{
_play.Stop();
}
int handle = (int)this.drawingareaVideo.Handle;
if (System.IO.File.Exists(VideoPath) == false)
{
throw new System.IO.FileNotFoundException("File not found", VideoPath);
}
_play = new MPlayer(handle, MplayerBackends.GL, MPlayerPath);
_play.Play(VideoPath);
}