public void InitDataTable() { this.idtUserinfo.Sf_Title.Alignment = StringAlignment.Center; this.idtUserinfo.Sf_Title.LineAlignment = StringAlignment.Center; this.idtUserinfo.Sf_Title.Trimming = StringTrimming.EllipsisCharacter; this.idtUserinfo.Sf_Content.Alignment = StringAlignment.Center; this.idtUserinfo.Sf_Content.LineAlignment = StringAlignment.Center; this.idtUserinfo.Sf_Content.Trimming = StringTrimming.EllipsisCharacter; this.idtUserinfo.TitleHeight = 35; this.idtUserinfo.ColHeight = 60; //this.idtUserinfo.IsTitle = false; this.idtUserinfo.Bg_SelectColor = Color.FromArgb(200, 200, 200); this.idtUserinfo.Bg_MoveColor = Color.FromArgb(190, 190, 190); this.idtUserinfo.borderColor = Color.FromArgb(230, 230, 230); this.idtUserinfo.Font_title.Dispose(); this.idtUserinfo.Font_title = new Font("微软雅黑", 11.0f, FontStyle.Bold); this.idtUserinfo.borderStyle = IMClient.Controls.borderStyleSelf.bordrNone; this.idtUserinfo.B_TitleColor = new LinearGradientBrush(new Rectangle(0, 0, this.idtUserinfo.Width, this.idtUserinfo.TitleHeight), Color.FromArgb(251, 251, 251), Color.FromArgb(240, 240, 240), LinearGradientMode.Vertical); ColClass col = new ColClass("序号", "number", 5); this.idtUserinfo.colList.Add(col); col = new ColClass("头像", "head", 10); this.idtUserinfo.SplitLine_Content_Length = this.idtUserinfo.Width - 24; this.idtUserinfo.SplitLine_Title_H_Length = this.idtUserinfo.Width; this.idtUserinfo.SplitLine_Title_V_Length = this.idtUserinfo.TitleHeight - 10; this.idtUserinfo.colList.Add(col); col = new ColClass("姓名", "username", 10); this.idtUserinfo.colList.Add(col); col = new ColClass("性别", "gender", 5); this.idtUserinfo.colList.Add(col); col = new ColClass("单位", "company", 20); this.idtUserinfo.colList.Add(col); col = new ColClass("职务", "age", 5); this.idtUserinfo.colList.Add(col); //col = new ColClass("年龄", "age", 5); //this.idtUserinfo.colList.Add(col); col = new ColClass("联系方式", "Phone", 15); this.idtUserinfo.colList.Add(col); col = new ColClass("邮箱", "mail", 20); this.idtUserinfo.colList.Add(col); col = new ColClass("", "btnF", 10); this.idtUserinfo.colList.Add(col); this.idtUserinfo.Height = dt.Rows.Count * this.idtUserinfo.ColHeight + this.idtUserinfo.TitleHeight; this.idtUserinfo.Invalidate(); }
public void InitDataTable() { this.idtUserinfo.Sf_Title.Alignment = StringAlignment.Center; this.idtUserinfo.Sf_Title.LineAlignment = StringAlignment.Center; this.idtUserinfo.Sf_Title.Trimming = StringTrimming.EllipsisCharacter; this.idtUserinfo.Sf_Content.Alignment = StringAlignment.Center; this.idtUserinfo.Sf_Content.LineAlignment = StringAlignment.Center; this.idtUserinfo.Sf_Content.Trimming = StringTrimming.EllipsisCharacter; this.idtUserinfo.TitleHeight = 35; this.idtUserinfo.ColHeight = 50; //this.idtUserinfo.IsTitle = false; this.idtUserinfo.Bg_SelectColor = Color.FromArgb(200, 200, 200); this.idtUserinfo.Bg_MoveColor = Color.FromArgb(190, 190, 190); this.idtUserinfo.borderColor = Color.FromArgb(230, 230, 230); this.idtUserinfo.Font_title.Dispose(); this.idtUserinfo.Font_title = new Font("微软雅黑", 11.0f, FontStyle.Bold); this.idtUserinfo.borderStyle = IMClient.Controls.borderStyleSelf.bordrNone; this.idtUserinfo.B_TitleColor = new LinearGradientBrush(new Rectangle(0, 0, this.idtUserinfo.Width, this.idtUserinfo.TitleHeight), Color.FromArgb(251, 251, 251), Color.FromArgb(240, 240, 240), LinearGradientMode.Vertical); ColClass col = new ColClass("序号", "rn", 5); this.idtUserinfo.colList.Add(col); col = new ColClass("会议室名称", "roomname", 20); this.idtUserinfo.SplitLine_Content_Length = this.idtUserinfo.Width - 24; this.idtUserinfo.SplitLine_Title_H_Length = this.idtUserinfo.Width; this.idtUserinfo.SplitLine_Title_V_Length = this.idtUserinfo.TitleHeight - 10; this.idtUserinfo.colList.Add(col); col = new ColClass("会议主题", "subject", 20); this.idtUserinfo.colList.Add(col); col = new ColClass("会议类型", "isPublicStr", 10); this.idtUserinfo.colList.Add(col); col = new ColClass("主持人", "truename", 10); this.idtUserinfo.colList.Add(col); col = new ColClass("参与人数", "MemberLimit", 10); this.idtUserinfo.colList.Add(col); col = new ColClass("状态", "meetingStatusStr", 10); this.idtUserinfo.colList.Add(col); col = new ColClass("创建时间", "createtime", 15); this.idtUserinfo.colList.Add(col); this.idtUserinfo.Height = pageSize * this.idtUserinfo.ColHeight + this.idtUserinfo.TitleHeight; this.idtUserinfo.Invalidate(); }