private string GetNowSelectedStreamItem() { if (LstVideoStream.SelectedItems.Count == 0) { var lstCount = LstVideoStream.Items.Count; Program.ShowNotice(5000, "编辑流信息", $"未选中需要编辑的流,{(lstCount > 0 ? "已为您选中第一项" : "当前无任何流信息,请先添加")}", ToolTipIcon.Warning); if (lstCount > 0) { LstVideoStream.Focus(); LstVideoStream.Items[0].Selected = true; } return(null); } return(LstVideoStream.SelectedItems[0].SubItems[0].Text); }
private void RelocateLstVideoStream() { LstVideoStream.ListViewItemSorter = new LstVideoCmpByPrivilege(); LstVideoStream.Sort(); }