示例#1
0
        public static ViewColumn createViewColumn(View viewModel, TObjectName column, int index)
        {
            if (ModelBindingManager.getViewModel(column) is ViewColumn)
            {
                return((ViewColumn)ModelBindingManager.getViewModel(column));
            }
            ViewColumn columnModel = new ViewColumn(viewModel, column, index);

            ModelBindingManager.bindViewModel(column, columnModel);
            return(columnModel);
        }
示例#2
0
        public static View createView(TCreateViewSqlStatement viewStmt)
        {
            if (ModelBindingManager.getViewModel(viewStmt) is View)
            {
                return((View)ModelBindingManager.getViewModel(viewStmt));
            }
            View viewModel = new View(viewStmt);

            ModelBindingManager.bindViewModel(viewStmt, viewModel);
            return(viewModel);
        }