/// <summary> /// Kills the video and everything /// associated with it /// </summary> /// <param name="video">DirectX video</param> public static void NullVideoAndForm(DirectXAllias::Video video) { if (CheckException.CheckNull(FormForVideo)) { FormForVideo.Dispose(); FormForVideo = null; } if (CheckException.CheckNull(video)) { video.Dispose(); video = null; } }
/// <summary> /// Dispatches the video and form meaning /// it cleans all resources behind /// after and the video is stopped /// AND the form is closed /// </summary> /// <param name="video">The DirectX video</param> public void DispatchVideoAndForm(DirectXAllias::Video video) { FormForVideo.Dispose(); video.Dispose(); }