protected void OnXFCardLocationEvent(double angle) { if (XFCardLocationEvent != null) { XFSpeakerLocationEventArgs obj = new XFSpeakerLocationEventArgs(); obj.Angle = angle; XFCardLocationEvent(this, obj); } }
void XfJsonResolver_XFCardLocationEvent(object sender, XFSpeakerLocationEventArgs args) { if (SuperObject.Config.EnabledCloseVideoPlayerWithVoice) { //关闭视频播放器(如果有的话) CloseVideoPlayer(); } //保存说话的角度 MainService.TaskService.Request(TaskActionType.Angle, args.Angle); }