public bool ShowDvdMenu(DvdMenuId menu) { IDvdCmd icmd; if ((this.PlayState != PlayState.Playing) || (_mDvdControl == null)) { return false; } else { int hr = _mDvdControl.ShowMenu(menu, DvdCmdFlags.Block | DvdCmdFlags.Flush, out icmd); DsError.ThrowExceptionForHR(hr); return true; } }
internal bool ShowDvdMenu(DvdMenuId menu) { IDvdCmd icmd; if ((this.currentState != PlayState.Running) || (dvdCtrl == null)) { return false; } else { try { int hr = dvdCtrl.ShowMenu(menu, DvdCmdFlags.Block | DvdCmdFlags.Flush, out icmd); DsError.ThrowExceptionForHR(hr); } catch (Exception ex) { using (EPDialog ed = new EPDialog()) ed.ShowDialog("Error", ex.Message, 10, this); } return true; } }