Exemple #1
0
        private async void CheckBoxFilterBOM_CheckedChanged(object sender, EventArgs e)
        {
            VisibleListObj.Clear();

            if (CheckBoxFilterBOM.Checked)
            {
                VisibleListObj.AddRange(ListObj.Where(x => x.UTF8BOM).ToList());
            }
            else
            {
                VisibleListObj.AddRange(ListObj);
            }
            await addToListView(VisibleListObj);
        }
Exemple #2
0
        private async void CheckBoxFilterGbk_CheckedChanged(object sender, EventArgs e)
        {
            VisibleListObj.Clear();

            if (CheckBoxFilterGbk.Checked)
            {
                //VisibleListObj.AddRange(ListObj.Where(x => x.UTF8BOM).ToList());
                VisibleListObj.AddRange(ListObj.Where((x) => {
                    return(x.Encoding.EncodingName.Contains("简体中文"));
                }).ToList());
            }
            else
            {
                VisibleListObj.AddRange(ListObj);
            }
            await addToListView(VisibleListObj);
        }