/// <summary> /// заполнение list данными из listView /// </summary> void CONVERT() { if (ViewModelMain.myLISTselect == null) { ViewModelMain.myLISTselect = new List <IPTVman.Model.ParamCanal>(); } ViewModelMain.myLISTselect.Clear(); int size = listView2.Items.Count; for (int i = 0; i < size; i++) { ListViewDragDropManager.Task p = (ListViewDragDropManager.Task)listView2.Items[i]; IPTVman.Model.ParamCanal canal = new IPTVman.Model.ParamCanal { name = p.Name, ExtFilter = "", group_title = "", logo = "", http = p.Http, tvg_name = "", ping = "", }; ViewModelMain.myLISTselect.Add(canal); } }
public int CompareTo(ParamCanal other) { if (other == null) { return(-1); } return(string.Compare(this.sort, other.sort, ignoreCase: true)); }