📄 contactbuddynode.cs
字号:
namespace Imps.Client.Pc.BizControls
{
using Imps.Utils;
using System;
using System.Drawing;
public class ContactBuddyNode : PaintTreeNode
{
private string _crbtToBuddyText;
private string _crbtToMeText;
private bool _enableConversation;
private bool _enableFileShare;
private bool _enableIVR;
private bool _enableSms;
private AmigoImage _image;
private string _moodPhrase;
private Color _moodPhraseColor;
private Font _moodPhraseFont;
private string _name;
private bool _needReCalculate;
private Color _nickNameColor;
private Font _nickNameFont;
private bool _showConversation;
private bool _showCrbtToBuddy;
private bool _showCrbtToMe;
private bool _showFileShare;
private bool _showIVR;
private bool _showSms;
protected static Font _staticNickNameFont = new Font("宋体", 9f);
private AmigoImage _statusImage;
private string _statusText;
internal ColumnCollection MoodPhraseCols = new ColumnCollection();
internal ColumnCollection NickNameCols = new ColumnCollection();
public ContactBuddyNode()
{
this.ConstructClass();
}
protected virtual void ConstructClass()
{
PaintTreeColumn column = new PaintTreeColumn();
column.ColumnType = PaintTreeColumnType.IMAGE;
column.bDrawRectangle = true;
column.bHoverRectangle = true;
base.Columns.Add(column);
PaintTreeColumn column2 = new PaintTreeColumn();
column2.ColumnType = PaintTreeColumnType.IMAGE;
column2.bDrawRectangle = false;
column2.bHoverRectangle = false;
base.Columns.Add(column2);
PaintTreeColumn column3 = new PaintTreeColumn();
column3.ColumnType = PaintTreeColumnType.IMAGE;
column3.bDrawRectangle = false;
column3.bHoverRectangle = false;
base.Columns.Add(column3);
PaintTreeColumn column4 = new PaintTreeColumn();
column4.ColumnType = PaintTreeColumnType.TEXT;
column4.bDrawRectangle = false;
column4.bHoverRectangle = false;
column4.ColumnFont = _staticNickNameFont;
column4.ColumnText = "";
base.Columns.Add(column4);
PaintTreeColumn column5 = new PaintTreeColumn();
column5.ColumnType = PaintTreeColumnType.TEXT;
column5.bDrawRectangle = false;
column5.bHoverRectangle = false;
column5.ColumnFont = _staticNickNameFont;
column5.ColumnText = "";
base.Columns.Add(column5);
PaintTreeColumn column6 = new PaintTreeColumn();
column6.ColumnType = PaintTreeColumnType.IMAGE;
column6.bHoverRectangle = false;
column6.bDrawRectangle = true;
base.Columns.Add(column6);
PaintTreeColumn column7 = new PaintTreeColumn();
column7.ColumnType = PaintTreeColumnType.TEXT;
column7.ColumnFont = _staticNickNameFont;
column7.ColumnColor = Color.FromArgb(0, 0, 0xff);
column7.bHoverRectangle = false;
column7.bDrawRectangle = true;
column7.ColumnText = "";
base.Columns.Add(column7);
PaintTreeColumn column8 = new PaintTreeColumn();
column8.ColumnType = PaintTreeColumnType.IMAGE;
column8.bHoverRectangle = false;
column8.bDrawRectangle = true;
base.Columns.Add(column8);
PaintTreeColumn column9 = new PaintTreeColumn();
column9.ColumnType = PaintTreeColumnType.TEXT;
column9.ColumnFont = _staticNickNameFont;
column9.ColumnColor = Color.FromArgb(0, 0, 0xff);
column9.bHoverRectangle = false;
column9.bDrawRectangle = true;
column9.ColumnText = "";
base.Columns.Add(column9);
PaintTreeColumn column10 = new PaintTreeColumn();
column10.ColumnType = PaintTreeColumnType.IMAGE;
column10.bHoverRectangle = false;
column10.bDrawRectangle = true;
base.Columns.Add(column10);
PaintTreeColumn column11 = new PaintTreeColumn();
column11.ColumnType = PaintTreeColumnType.TEXT;
column11.bDrawRectangle = false;
column11.bHoverRectangle = false;
column11.ColumnFont = _staticNickNameFont;
column11.ColumnColor = Color.FromArgb(0xd6, 0xd7, 0xd5);
column11.ColumnText = "";
base.Columns.Add(column11);
this.NickNameCols = new ColumnCollection();
this.MoodPhraseCols = new ColumnCollection();
this._enableConversation = true;
this._enableIVR = true;
this._enableSms = true;
this._enableFileShare = true;
}
public AmigoImage BuddyImage
{
get
{
return this._image;
}
set
{
this._image = value;
base.Columns[2].image = value;
}
}
public string CrbtToBuddyText
{
get
{
return base.Columns[8].ColumnText;
}
set
{
this._crbtToBuddyText = value;
base.Columns[8].ColumnText = value;
}
}
public string CrbtToMeText
{
get
{
return base.Columns[6].ColumnText;
}
set
{
this._crbtToMeText = value;
base.Columns[6].ColumnText = value;
}
}
internal bool EnableConversation
{
get
{
return this._enableConversation;
}
set
{
this._enableConversation = value;
}
}
internal bool EnableFileShare
{
get
{
return this._enableFileShare;
}
set
{
this._enableFileShare = value;
}
}
internal bool EnableIVR
{
get
{
return this._enableIVR;
}
set
{
this._enableIVR = value;
}
}
internal bool EnableSms
{
get
{
return this._enableSms;
}
set
{
this._enableSms = value;
}
}
public string MoodPhrase
{
get
{
return this._moodPhrase;
}
set
{
base.Columns[4].ColumnText = value;
this._moodPhrase = value;
}
}
public Color MoodPhraseColor
{
get
{
return this._moodPhraseColor;
}
set
{
this._moodPhraseColor = value;
base.Columns[4].ColumnColor = value;
}
}
public Font MoodPhraseFont
{
get
{
return this._moodPhraseFont;
}
set
{
base.Columns[4].ColumnFont = value;
this._moodPhraseFont = value;
}
}
internal bool NeedCaculate
{
get
{
return this._needReCalculate;
}
set
{
this._needReCalculate = value;
}
}
public string NickName
{
get
{
return this._name;
}
set
{
base.Columns[3].ColumnText = value;
this._name = value;
}
}
public Color NickNameColor
{
get
{
return this._nickNameColor;
}
set
{
this._nickNameColor = value;
base.Columns[3].ColumnColor = value;
}
}
public Font NickNameFont
{
get
{
return this._nickNameFont;
}
set
{
this._nickNameFont = value;
base.Columns[3].ColumnFont = value;
}
}
internal bool ShowConversation
{
get
{
return this._showConversation;
}
set
{
this._showConversation = value;
}
}
public bool ShowCrbtToBuddy
{
get
{
return this._showCrbtToBuddy;
}
set
{
this._showCrbtToBuddy = value;
base.Columns[8].Visible = value;
}
}
public bool ShowCrbtToMe
{
get
{
return this._showCrbtToMe;
}
set
{
this._showCrbtToMe = value;
base.Columns[6].Visible = value;
}
}
internal bool ShowFileShare
{
get
{
return this._showFileShare;
}
set
{
this._showFileShare = value;
}
}
internal bool ShowIVR
{
get
{
return this._showIVR;
}
set
{
this._showIVR = value;
}
}
internal bool ShowSms
{
get
{
return this._showSms;
}
set
{
this._showSms = value;
}
}
public AmigoImage StatusImage
{
get
{
return this._statusImage;
}
set
{
this._statusImage = value;
base.Columns[0].image = value;
}
}
public string StatusText
{
get
{
return this._statusText;
}
set
{
this._statusText = value;
base.Columns[10].ColumnText = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -