コード例 #1
0
        public void test_shape()
        {
            IEnumerable <dynamic> results = tbl.Paged(where : "objid > 1", currentPage: 1, pageSize: 20).Items;

            ExpandoObject eo = new ExpandoObject();

            string a = "Description";

            // Use delegate instance to call UppercaseString method

            //string name = "Dakota";
            //string myshape = convertMethod(name);
            // List<string> myGridData = convertMethod(results);
            List <string> myGridData = new List <string>();
            //Func<string, List<string>> convertMethod = ShapeGridRow;
            DelegateShapeGridRow convertMethod = ShapeGridRow;

            foreach (dynamic result in results)
            {
                dynamic desc = result;
                myGridData = convertMethod(result);
            }


            this.IsPending();
        }
コード例 #2
0
ファイル: jgridDisplayHelper.cs プロジェクト: harshb/ko-
 public jgridDisplayHelper(DelegateShapeGridRow convertMethod)
 {
     this.ConvertMethod = convertMethod;
 }
コード例 #3
0
ファイル: jgridDisplayHelper.cs プロジェクト: harshb/ko-
 public jgridDisplayHelper(DynamicModel _tbl, DelegateShapeGridRow convertMethod)
 {
     tbl = _tbl;
     this.ConvertMethod = convertMethod;
 }
コード例 #4
0
 public jgridDisplayHelper(DelegateShapeGridRow convertMethod)
 {
     this.ConvertMethod = convertMethod;
 }
コード例 #5
0
 public jgridDisplayHelper(DynamicModel _tbl, DelegateShapeGridRow convertMethod)
 {
     tbl = _tbl;
     this.ConvertMethod = convertMethod;
 }