コード例 #1
0
        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;
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }