Пример #1
0
 /// <summary>
 /// 主线程更新UI
 /// </summary>
 /// <param name="control"></param>
 /// <param name="action"></param>
 public void RunOnUIThread(Control control, MethodInvoker action)
 {
     UISync.Init(control);
     UISync.Execute(() => { action?.Invoke(); });
 }
Пример #2
0
 /// <summary>
 /// 设置视频视窗
 /// </summary>
 /// <param name="hwnd"></param>
 public virtual void SetHwnd(Control hwnd)
 {
     UISync.Init(hwnd);
     SetHwnd(hwnd.Handle);
 }