private bool initListView(Control listView) { ((FastObjectListView)listView).ClearObjects(); ((FastObjectListView)listView).Columns.Clear(); OLVColumn col1 = new OLVColumn(); col1.Text = "关键词"; col1.UseInitialLetterForGroup = true; col1.Width = 140; col1.AspectGetter = delegate(object x) { return(((TaskGroup_GetSimilarKeywords_OneData)x).Word); }; ((FastObjectListView)listView).Columns.Add(col1); OLVColumn col2 = new OLVColumn(); col2.Text = "基础词"; col2.UseInitialLetterForGroup = true; col2.Width = 140; col2.AspectGetter = delegate(object x) { return(((TaskGroup_GetSimilarKeywords_OneData)x).BaseKeyword); }; ((FastObjectListView)listView).Columns.Add(col2); OLVColumn col3 = new OLVColumn(); col3.Text = "状态"; col3.UseInitialLetterForGroup = false; col3.Width = 80; col3.AspectGetter = delegate(object x) { if (((TaskGroup_GetSimilarKeywords_OneData)x).Successed) { return("成功"); } else { return("失败"); } }; ((FastObjectListView)listView).Columns.Add(col3); OLVColumn col4 = new OLVColumn(); col4.Width = 68; col4.Text = "来源"; col4.TextAlign = HorizontalAlignment.Center; col4.AspectGetter = delegate(object x) { return(EnumString.GetStringValue(((TaskGroup_GetSimilarKeywords_OneData)x).eSource)); }; ((FastObjectListView)listView).Columns.Add(col4); OLVColumn col5 = new OLVColumn(); col5.Text = "百度PC指数"; col5.Width = 100; col5.TextAlign = HorizontalAlignment.Center; col5.Renderer = new MultiImageRenderer(Properties.Resources.star16, 5, 0, 10); col5.AspectGetter = delegate(object x) { return(((TaskGroup_GetSimilarKeywords_OneData)x).BaiduPCIndex.ToString()); }; ((FastObjectListView)listView).Columns.Add(col5); return(true); }