/// <summary> /// 更新某个窗口的配置 /// </summary> /// <param name="obj"></param> public void Update(PictureInPuctureObject obj) { var item = WindowList.FirstOrDefault(x => x.VideoNo == obj.VideoNo); if (item != null) { item.Left = obj.Left; item.Top = obj.Top; item.Width = obj.Width; item.Height = obj.Height; } }
public void LoadPreviewWindowImages() { if (isLoadPreviewWindow) { return; } isLoadPreviewWindow = true; WindowList = _enumerationWindowService.GetWindowList(); if (WindowList != null) { SelectedWindow = WindowList.FirstOrDefault(); } isLoadPreviewWindow = false; }
/// <summary> /// 获得某个窗口的配置 /// </summary> /// <param name="videoNo"></param> /// <returns></returns> public PictureInPuctureObject GetItemByvideoNo(int videoNo) { return(WindowList.FirstOrDefault(x => x.VideoNo == videoNo)); }