コード例 #1
0
        public TableBuilder AddColumns(params ColumnDefinition[] columns)
        {
            if (_prepared)
            {
                throw new TableAlreadyDefinedException();
            }

            ColumnDefinitions.AddRange(columns);
            return(this);
        }
コード例 #2
0
        public override void BeginInit()
        {
            base.BeginInit();

            Sentence_From = "UserInfoSet AS t1";
            ColumnDefinitions.AddRange(new CD[]
            {
                new CD(typeof(DataGridViewTextBoxColumn), "用户名", null, "t1.UserName", "colUserName"),
                new CD(typeof(DataGridViewTextBoxColumn), "姓名", null, "t1.DisplayName", "colDisplayName"),
                new CD(typeof(DataGridViewCheckBoxColumn), "禁用", null, "t1.Disabled", "colDisabled", 20),
            });
        }
コード例 #3
0
 public DefinitionNode(params ColumnDefinition[] columns)
 {
     ColumnDefinitions.AddRange(columns);
 }