예제 #1
0
        public override int GetAutoHeight(Row r, int index, RowSpecificCellProperties preRscp)
        {
            int num = 0;

            if (!base.AutoHeight)
            {
                return(base.Bounds.Height);
            }
            RowSpecificCellProperties properties = (preRscp == null) ? base.GetRowSpecificProperties(r) : preRscp;

            if (properties.CachedAutoHeight >= 0)
            {
                return(properties.CachedAutoHeight);
            }
            string text = this.GetText(base[r, index]);

            if (((text == null) || (text.Length == 0)) || !properties.Visible.Value)
            {
                return(0);
            }
            int gridWidth = 0;

            Resco.Controls.AdvancedList.AdvancedList parent = base.Parent;
            if (parent != null)
            {
                gridWidth = parent.CalculateClientRect().Width - (parent.ScrollbarVisible ? parent.ScrollbarWidth : 0);
            }
            if (gridWidth != 0)
            {
                Rectangle rectangle = base.CalculateCellWidth(gridWidth);
                rectangle.Width -= 3;
                if (rectangle.Width > base.Parent.ScrollbarWidth)
                {
                    Graphics gr   = base.Graphics;
                    bool     flag = false;
                    if ((gr == null) && (base.Parent != null))
                    {
                        gr   = base.Parent.CreateGraphics();
                        flag = true;
                    }
                    WrapTextData data = Utility.WrapText(gr, text, this.m_Font, rectangle.Width);
                    if ((gr != null) && flag)
                    {
                        gr.Dispose();
                    }
                    num = (data != null) ? (data.Height + 2) : 0;
                }
            }
            properties.CachedAutoHeight = num;
            return(num);
        }
예제 #2
0
 internal RowCollection(Resco.Controls.AdvancedList.AdvancedList parent)
 {
     this.m_pParent = parent;
 }
예제 #3
0
 internal RowCollection(Resco.Controls.AdvancedList.AdvancedList parent)
 {
     this.m_pParent = parent;
 }
예제 #4
0
파일: BInfo.cs 프로젝트: north0808/haina
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(BInfo));
     this.pcB_DisPlay = new System.Windows.Forms.PictureBox();
     this.pnl_disPlay = new System.Windows.Forms.Panel();
     this.label2 = new System.Windows.Forms.Label();
     this.pcb_mood = new System.Windows.Forms.PictureBox();
     this.pnl_Full = new System.Windows.Forms.Panel();
     this.label1 = new System.Windows.Forms.Label();
     this.ltb_UserName = new BelugaMobile.BaseControl.lable_Text_Button();
     this.tbc_commuint = new System.Windows.Forms.TabControl();
     this.tab_callrecord = new System.Windows.Forms.TabPage();
     this.callrecord_List = new Resco.Controls.AdvancedList.AdvancedList();
     this.tab_communityRecord = new System.Windows.Forms.TabPage();
     this.communityRecord_List = new Resco.Controls.AdvancedList.AdvancedList();
     this.tab_Host = new System.Windows.Forms.TabPage();
     this.tabPage1 = new System.Windows.Forms.TabPage();
     this.pnl_disPlay.SuspendLayout();
     this.pnl_Full.SuspendLayout();
     this.tbc_commuint.SuspendLayout();
     this.tab_callrecord.SuspendLayout();
     this.tab_communityRecord.SuspendLayout();
     this.SuspendLayout();
     //
     // pcB_DisPlay
     //
     this.pcB_DisPlay.BackColor = System.Drawing.Color.Black;
     this.pcB_DisPlay.Dock = System.Windows.Forms.DockStyle.Left;
     this.pcB_DisPlay.Image = ((System.Drawing.Image)(resources.GetObject("pcB_DisPlay.Image")));
     this.pcB_DisPlay.Location = new System.Drawing.Point(0, 0);
     this.pcB_DisPlay.Name = "pcB_DisPlay";
     this.pcB_DisPlay.Size = new System.Drawing.Size(75, 83);
     this.pcB_DisPlay.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     //
     // pnl_disPlay
     //
     this.pnl_disPlay.BackColor = System.Drawing.Color.White;
     this.pnl_disPlay.Controls.Add(this.label2);
     this.pnl_disPlay.Controls.Add(this.pcb_mood);
     this.pnl_disPlay.Controls.Add(this.pnl_Full);
     this.pnl_disPlay.Controls.Add(this.pcB_DisPlay);
     this.pnl_disPlay.Location = new System.Drawing.Point(1, 43);
     this.pnl_disPlay.Name = "pnl_disPlay";
     this.pnl_disPlay.Size = new System.Drawing.Size(236, 83);
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(147, 45);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(47, 36);
     this.label2.Text = "          心情:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.TopCenter;
     //
     // pcb_mood
     //
     this.pcb_mood.BackColor = System.Drawing.Color.Black;
     this.pcb_mood.Image = ((System.Drawing.Image)(resources.GetObject("pcb_mood.Image")));
     this.pcb_mood.Location = new System.Drawing.Point(200, 45);
     this.pcb_mood.Name = "pcb_mood";
     this.pcb_mood.Size = new System.Drawing.Size(33, 38);
     this.pcb_mood.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     //
     // pnl_Full
     //
     this.pnl_Full.Controls.Add(this.label1);
     this.pnl_Full.Controls.Add(this.ltb_UserName);
     this.pnl_Full.Location = new System.Drawing.Point(81, 3);
     this.pnl_Full.Name = "pnl_Full";
     this.pnl_Full.Size = new System.Drawing.Size(158, 36);
     //
     // label1
     //
     this.label1.Dock = System.Windows.Forms.DockStyle.Left;
     this.label1.Location = new System.Drawing.Point(0, 0);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(47, 36);
     this.label1.Text = "          姓名:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
     //
     // ltb_UserName
     //
     this.ltb_UserName.LableText = "头像:";
     this.ltb_UserName.Location = new System.Drawing.Point(51, 0);
     this.ltb_UserName.Name = "ltb_UserName";
     this.ltb_UserName.Size = new System.Drawing.Size(104, 36);
     this.ltb_UserName.TabIndex = 2;
     //
     // tbc_commuint
     //
     this.tbc_commuint.Controls.Add(this.tab_callrecord);
     this.tbc_commuint.Controls.Add(this.tab_communityRecord);
     this.tbc_commuint.Controls.Add(this.tab_Host);
     this.tbc_commuint.Controls.Add(this.tabPage1);
     this.tbc_commuint.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.tbc_commuint.Location = new System.Drawing.Point(0, 127);
     this.tbc_commuint.Name = "tbc_commuint";
     this.tbc_commuint.SelectedIndex = 0;
     this.tbc_commuint.Size = new System.Drawing.Size(240, 167);
     this.tbc_commuint.TabIndex = 1;
     //
     // tab_callrecord
     //
     this.tab_callrecord.Controls.Add(this.callrecord_List);
     this.tab_callrecord.Location = new System.Drawing.Point(0, 0);
     this.tab_callrecord.Name = "tab_callrecord";
     this.tab_callrecord.Size = new System.Drawing.Size(240, 144);
     this.tab_callrecord.Text = "通讯记录";
     //
     // callrecord_List
     //
     this.callrecord_List.Dock = System.Windows.Forms.DockStyle.Fill;
     this.callrecord_List.GridColor = System.Drawing.Color.Empty;
     this.callrecord_List.Location = new System.Drawing.Point(0, 0);
     this.callrecord_List.Name = "callrecord_List";
     this.callrecord_List.Size = new System.Drawing.Size(240, 144);
     this.callrecord_List.TabIndex = 0;
     //
     // tab_communityRecord
     //
     this.tab_communityRecord.Controls.Add(this.communityRecord_List);
     this.tab_communityRecord.Location = new System.Drawing.Point(0, 0);
     this.tab_communityRecord.Name = "tab_communityRecord";
     this.tab_communityRecord.Size = new System.Drawing.Size(240, 144);
     this.tab_communityRecord.Text = "社区记录";
     //
     // communityRecord_List
     //
     this.communityRecord_List.Dock = System.Windows.Forms.DockStyle.Fill;
     this.communityRecord_List.GridColor = System.Drawing.Color.Empty;
     this.communityRecord_List.Location = new System.Drawing.Point(0, 0);
     this.communityRecord_List.Name = "communityRecord_List";
     this.communityRecord_List.Size = new System.Drawing.Size(240, 144);
     this.communityRecord_List.TabIndex = 0;
     //
     // tab_Host
     //
     this.tab_Host.Location = new System.Drawing.Point(0, 0);
     this.tab_Host.Name = "tab_Host";
     this.tab_Host.Size = new System.Drawing.Size(240, 144);
     this.tab_Host.Text = "个人资料";
     //
     // tabPage1
     //
     this.tabPage1.Location = new System.Drawing.Point(0, 0);
     this.tabPage1.Name = "tabPage1";
     this.tabPage1.Size = new System.Drawing.Size(240, 144);
     this.tabPage1.Text = "社区";
     //
     // BInfo
     //
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
     this.ClientSize = new System.Drawing.Size(240, 294);
     this.Controls.Add(this.tbc_commuint);
     this.Controls.Add(this.pnl_disPlay);
     this.Name = "BInfo";
     this.Text = "编辑个人信息";
     this.pnl_disPlay.ResumeLayout(false);
     this.pnl_Full.ResumeLayout(false);
     this.tbc_commuint.ResumeLayout(false);
     this.tab_callrecord.ResumeLayout(false);
     this.tab_communityRecord.ResumeLayout(false);
     this.ResumeLayout(false);
 }
예제 #5
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(BInfo));
     this.pcB_DisPlay          = new System.Windows.Forms.PictureBox();
     this.pnl_disPlay          = new System.Windows.Forms.Panel();
     this.label2               = new System.Windows.Forms.Label();
     this.pcb_mood             = new System.Windows.Forms.PictureBox();
     this.pnl_Full             = new System.Windows.Forms.Panel();
     this.label1               = new System.Windows.Forms.Label();
     this.ltb_UserName         = new BelugaMobile.BaseControl.lable_Text_Button();
     this.tbc_commuint         = new System.Windows.Forms.TabControl();
     this.tab_callrecord       = new System.Windows.Forms.TabPage();
     this.callrecord_List      = new Resco.Controls.AdvancedList.AdvancedList();
     this.tab_communityRecord  = new System.Windows.Forms.TabPage();
     this.communityRecord_List = new Resco.Controls.AdvancedList.AdvancedList();
     this.tab_Host             = new System.Windows.Forms.TabPage();
     this.tabPage1             = new System.Windows.Forms.TabPage();
     this.pnl_disPlay.SuspendLayout();
     this.pnl_Full.SuspendLayout();
     this.tbc_commuint.SuspendLayout();
     this.tab_callrecord.SuspendLayout();
     this.tab_communityRecord.SuspendLayout();
     this.SuspendLayout();
     //
     // pcB_DisPlay
     //
     this.pcB_DisPlay.BackColor = System.Drawing.Color.Black;
     this.pcB_DisPlay.Dock      = System.Windows.Forms.DockStyle.Left;
     this.pcB_DisPlay.Image     = ((System.Drawing.Image)(resources.GetObject("pcB_DisPlay.Image")));
     this.pcB_DisPlay.Location  = new System.Drawing.Point(0, 0);
     this.pcB_DisPlay.Name      = "pcB_DisPlay";
     this.pcB_DisPlay.Size      = new System.Drawing.Size(75, 83);
     this.pcB_DisPlay.SizeMode  = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     //
     // pnl_disPlay
     //
     this.pnl_disPlay.BackColor = System.Drawing.Color.White;
     this.pnl_disPlay.Controls.Add(this.label2);
     this.pnl_disPlay.Controls.Add(this.pcb_mood);
     this.pnl_disPlay.Controls.Add(this.pnl_Full);
     this.pnl_disPlay.Controls.Add(this.pcB_DisPlay);
     this.pnl_disPlay.Location = new System.Drawing.Point(1, 43);
     this.pnl_disPlay.Name     = "pnl_disPlay";
     this.pnl_disPlay.Size     = new System.Drawing.Size(236, 83);
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(147, 45);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(47, 36);
     this.label2.Text      = "          心情:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.TopCenter;
     //
     // pcb_mood
     //
     this.pcb_mood.BackColor = System.Drawing.Color.Black;
     this.pcb_mood.Image     = ((System.Drawing.Image)(resources.GetObject("pcb_mood.Image")));
     this.pcb_mood.Location  = new System.Drawing.Point(200, 45);
     this.pcb_mood.Name      = "pcb_mood";
     this.pcb_mood.Size      = new System.Drawing.Size(33, 38);
     this.pcb_mood.SizeMode  = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     //
     // pnl_Full
     //
     this.pnl_Full.Controls.Add(this.label1);
     this.pnl_Full.Controls.Add(this.ltb_UserName);
     this.pnl_Full.Location = new System.Drawing.Point(81, 3);
     this.pnl_Full.Name     = "pnl_Full";
     this.pnl_Full.Size     = new System.Drawing.Size(158, 36);
     //
     // label1
     //
     this.label1.Dock      = System.Windows.Forms.DockStyle.Left;
     this.label1.Location  = new System.Drawing.Point(0, 0);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(47, 36);
     this.label1.Text      = "          姓名:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
     //
     // ltb_UserName
     //
     this.ltb_UserName.LableText = "头像:";
     this.ltb_UserName.Location  = new System.Drawing.Point(51, 0);
     this.ltb_UserName.Name      = "ltb_UserName";
     this.ltb_UserName.Size      = new System.Drawing.Size(104, 36);
     this.ltb_UserName.TabIndex  = 2;
     //
     // tbc_commuint
     //
     this.tbc_commuint.Controls.Add(this.tab_callrecord);
     this.tbc_commuint.Controls.Add(this.tab_communityRecord);
     this.tbc_commuint.Controls.Add(this.tab_Host);
     this.tbc_commuint.Controls.Add(this.tabPage1);
     this.tbc_commuint.Dock          = System.Windows.Forms.DockStyle.Bottom;
     this.tbc_commuint.Location      = new System.Drawing.Point(0, 127);
     this.tbc_commuint.Name          = "tbc_commuint";
     this.tbc_commuint.SelectedIndex = 0;
     this.tbc_commuint.Size          = new System.Drawing.Size(240, 167);
     this.tbc_commuint.TabIndex      = 1;
     //
     // tab_callrecord
     //
     this.tab_callrecord.Controls.Add(this.callrecord_List);
     this.tab_callrecord.Location = new System.Drawing.Point(0, 0);
     this.tab_callrecord.Name     = "tab_callrecord";
     this.tab_callrecord.Size     = new System.Drawing.Size(240, 144);
     this.tab_callrecord.Text     = "通讯记录";
     //
     // callrecord_List
     //
     this.callrecord_List.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.callrecord_List.GridColor = System.Drawing.Color.Empty;
     this.callrecord_List.Location  = new System.Drawing.Point(0, 0);
     this.callrecord_List.Name      = "callrecord_List";
     this.callrecord_List.Size      = new System.Drawing.Size(240, 144);
     this.callrecord_List.TabIndex  = 0;
     //
     // tab_communityRecord
     //
     this.tab_communityRecord.Controls.Add(this.communityRecord_List);
     this.tab_communityRecord.Location = new System.Drawing.Point(0, 0);
     this.tab_communityRecord.Name     = "tab_communityRecord";
     this.tab_communityRecord.Size     = new System.Drawing.Size(240, 144);
     this.tab_communityRecord.Text     = "社区记录";
     //
     // communityRecord_List
     //
     this.communityRecord_List.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.communityRecord_List.GridColor = System.Drawing.Color.Empty;
     this.communityRecord_List.Location  = new System.Drawing.Point(0, 0);
     this.communityRecord_List.Name      = "communityRecord_List";
     this.communityRecord_List.Size      = new System.Drawing.Size(240, 144);
     this.communityRecord_List.TabIndex  = 0;
     //
     // tab_Host
     //
     this.tab_Host.Location = new System.Drawing.Point(0, 0);
     this.tab_Host.Name     = "tab_Host";
     this.tab_Host.Size     = new System.Drawing.Size(240, 144);
     this.tab_Host.Text     = "个人资料";
     //
     // tabPage1
     //
     this.tabPage1.Location = new System.Drawing.Point(0, 0);
     this.tabPage1.Name     = "tabPage1";
     this.tabPage1.Size     = new System.Drawing.Size(240, 144);
     this.tabPage1.Text     = "社区";
     //
     // BInfo
     //
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
     this.ClientSize    = new System.Drawing.Size(240, 294);
     this.Controls.Add(this.tbc_commuint);
     this.Controls.Add(this.pnl_disPlay);
     this.Name = "BInfo";
     this.Text = "编辑个人信息";
     this.pnl_disPlay.ResumeLayout(false);
     this.pnl_Full.ResumeLayout(false);
     this.tbc_commuint.ResumeLayout(false);
     this.tab_callrecord.ResumeLayout(false);
     this.tab_communityRecord.ResumeLayout(false);
     this.ResumeLayout(false);
 }