void set(ParamCanal k) { int index = 0; foreach (var j in ViewModelMain.myLISTfull) { if (k.Compare() == j.Compare()) { if (chek1) { ViewModelMain.myLISTfull[index].name = ViewModelMain.myLISTfull[index].name.Replace(sel1, sel2).Trim(); } if (chek2) { ViewModelMain.myLISTfull[index].ping = ViewModelMain.myLISTfull[index].ping.Replace(sel1, sel2).Trim(); } if (chek3) { ViewModelMain.myLISTfull[index].ExtFilter = ViewModelMain.myLISTfull[index].ExtFilter.Replace(sel1, sel2).Trim(); } if (chek4) { ViewModelMain.myLISTfull[index].group_title = ViewModelMain.myLISTfull[index].group_title.Replace(sel1, sel2).Trim(); } if (chek5) { ViewModelMain.myLISTfull[index].http = ViewModelMain.myLISTfull[index].http.Replace(sel1, sel2).Trim(); } if (chek6) { ViewModelMain.myLISTfull[index].logo = ViewModelMain.myLISTfull[index].logo.Replace(sel1, sel2).Trim(); } if (chek7) { ViewModelMain.myLISTfull[index].tvg_name = ViewModelMain.myLISTfull[index].tvg_name.Replace(sel1, sel2).Trim(); } find = true; return; } index++; } }
void setregular(ParamCanal k) { int index = 0; foreach (var j in ViewModelMain.myLISTfull) { if (k.Compare() == j.Compare()) { if (chek1) { ViewModelMain.myLISTfull[index].name = sel2.Trim(); } if (chek2) { ViewModelMain.myLISTfull[index].ping = sel2.Trim(); } if (chek3) { ViewModelMain.myLISTfull[index].ExtFilter = sel2.Trim(); } if (chek4) { ViewModelMain.myLISTfull[index].group_title = sel2.Trim(); } if (chek5) { ViewModelMain.myLISTfull[index].http = sel2.Trim(); } if (chek6) { ViewModelMain.myLISTfull[index].logo = sel2.Trim(); } if (chek7) { ViewModelMain.myLISTfull[index].tvg_name = sel2.Trim(); } find = true; return; } index++; } }