public override ListColumnCollection<ListObject> CreateColumns() { ListColumn<ListObject> listColumn = new ListColumn<ListObject>("Antivirus", new Converter<ListObject, string>( delegate(ListObject listObject) { Debug.WriteLine("Getting listObject from ListColumn " + listObject.Id); return GetDataFromYourCache(listObject.Id.ToString()); })); ListColumnCollection<ListObject> columns = new ListColumnCollection<ListObject>(); columns.Add(listColumn); return columns; }
public override ListColumnCollection <ListObject> CreateColumns() { ListColumn <ListObject> listColumn = new ListColumn <ListObject>("Antivirus", new Converter <ListObject, string>( delegate(ListObject listObject) { Debug.WriteLine("Getting listObject from ListColumn " + listObject.Id); return(GetDataFromYourCache(listObject.Id.ToString())); })); ListColumnCollection <ListObject> columns = new ListColumnCollection <ListObject>(); columns.Add(listColumn); return(columns); }
public static ListColumnCollection<MyBusinessObject> CreateColumns() { var columns = new ListColumnCollection<MyBusinessObject>(); var column = columns.Add("ComputerName", "ComputerName"); column.IsRequired = true; column = columns.Add("AdminName", "AdminName"); column.IsRequired = true; column = columns.Add("CompanyName", "CompanyName"); column.IsRequired = true; return(columns); }
public static ListColumnCollection <MyBusinessObject> CreateColumns() { var columns = new ListColumnCollection <MyBusinessObject>(); var column = columns.Add("ComputerName", "ComputerName"); column.IsRequired = true; column = columns.Add("AdminName", "AdminName"); column.IsRequired = true; column = columns.Add("CompanyName", "CompanyName"); column.IsRequired = true; return(columns); }