messagehistoryfrom.cs
来自「破解的飞信源代码」· CS 代码 · 共 1,211 行 · 第 1/5 页
CS
1,211 行
private TreeNode FindPlayer(TreeNode baseNode, string uri)
{
try
{
if (baseNode.Tag is Player)
{
Player player = baseNode.Tag as Player;
if (player.Uri == uri)
{
return baseNode;
}
}
}
catch
{
}
foreach (TreeNode node in baseNode.Nodes)
{
TreeNode node2 = this.FindPlayer(node, uri);
if (node2 != null)
{
return node2;
}
}
return null;
}
private void GlobalTimer_Tick(object sender, EventArgs e)
{
this._rtfManager.UpdateImage();
}
private void InitializeComponent()
{
this.components = new Container();
ComponentResourceManager manager = new ComponentResourceManager(typeof(MessageHistoryFrom));
DataGridViewCellStyle style = new DataGridViewCellStyle();
DataGridViewCellStyle style2 = new DataGridViewCellStyle();
this.splitContainer = new SplitContainer();
this.pPlayerNavigation = new UPanel();
this.playerNavigation = new TreeView();
this.imageList = new ImageList(this.components);
this.pMessage = new UPanel();
this.tbMessage = new ChatRichTextBox();
this.pMessageView = new UPanel();
this.btnHiddeDetail = new UButton();
this.pictureBox = new PictureBox();
this.dvMessageView = new DataGridView();
this.MsgType = new DataGridViewImageColumn();
this.Sender = new DataGridViewTextBoxColumn();
this.Receiver = new DataGridViewTextBoxColumn();
this.MobileNo = new DataGridViewTextBoxColumn();
this.Body = new DataGridViewTextBoxColumn();
this.DateString = new DataGridViewTextBoxColumn();
this.sourceManager = new BindingSource(this.components);
this.lPlayer = new Label();
this.lDateTime = new Label();
this.llFirst = new LinkLabel();
this.llPrevious = new LinkLabel();
this.llNext = new LinkLabel();
this.operatePanel = new UPanel();
this.pictureBox1 = new PictureBox();
this.btnSearch = new UButton();
this.tbSearchString = new BListControlToolbar();
this.btnRefresh = new UButton();
this.btnDelete = new UButton();
this.llLast = new LinkLabel();
this.lMessageInfo = new HtmlLabel();
this.lReceivers = new Label();
this.cmCopy = new ContextMenuStrip(this.components);
this.miCopy = new ToolStripMenuItem();
this.cmTree = new ContextMenuStrip(this.components);
this.miOpen = new ToolStripMenuItem();
this.miRefresh = new ToolStripMenuItem();
this.miDelete = new ToolStripMenuItem();
this.miSplit = new ToolStripSeparator();
this.miOperation = new ToolStripMenuItem();
this.pProgress = new Panel();
this.label1 = new Label();
this.progressBar1 = new ProgressBar();
this.splitContainer.get_Panel1().SuspendLayout();
this.splitContainer.get_Panel2().SuspendLayout();
this.splitContainer.SuspendLayout();
this.pPlayerNavigation.SuspendLayout();
this.pMessage.SuspendLayout();
this.pMessageView.SuspendLayout();
this.pictureBox.BeginInit();
this.dvMessageView.BeginInit();
this.sourceManager.BeginInit();
this.operatePanel.SuspendLayout();
this.pictureBox1.BeginInit();
this.cmCopy.SuspendLayout();
this.cmTree.SuspendLayout();
this.pProgress.SuspendLayout();
base.SuspendLayout();
this.splitContainer.BackColor = Color.Transparent;
this.splitContainer.set_Dock(DockStyle.Fill);
this.splitContainer.Location = new System.Drawing.Point(2, 0x17);
this.splitContainer.set_MinimumSize(new Size(750, 450));
this.splitContainer.Name = "splitContainer";
this.splitContainer.get_Panel1().Controls.Add(this.pPlayerNavigation);
this.splitContainer.get_Panel1().set_Padding(new Padding(0, 3, 0, 0));
this.splitContainer.get_Panel1().Resize += new EventHandler(this.splitContainer_Panel1_Resize);
this.splitContainer.set_Panel1MinSize(100);
this.splitContainer.get_Panel2().BackColor = Color.Transparent;
this.splitContainer.get_Panel2().Controls.Add(this.pMessage);
this.splitContainer.get_Panel2().Controls.Add(this.pMessageView);
this.splitContainer.get_Panel2().Controls.Add(this.lPlayer);
this.splitContainer.get_Panel2().Controls.Add(this.lDateTime);
this.splitContainer.get_Panel2().Controls.Add(this.llFirst);
this.splitContainer.get_Panel2().Controls.Add(this.llPrevious);
this.splitContainer.get_Panel2().Controls.Add(this.llNext);
this.splitContainer.get_Panel2().Controls.Add(this.operatePanel);
this.splitContainer.get_Panel2().Controls.Add(this.llLast);
this.splitContainer.get_Panel2().Controls.Add(this.lMessageInfo);
this.splitContainer.get_Panel2().Controls.Add(this.lReceivers);
this.splitContainer.get_Panel2().ForeColor = Color.Black;
this.splitContainer.get_Panel2().set_Padding(new Padding(0, 3, 0, 0));
this.splitContainer.get_Panel2().Resize += new EventHandler(this.splitContainer_Panel2_Resize);
this.splitContainer.set_Panel2MinSize(600);
this.splitContainer.Size = new Size(0x3b4, 0x2ba);
this.splitContainer.set_SplitterDistance(190);
this.splitContainer.TabIndex = 0;
this.splitContainer.set_TabStop(false);
this.pPlayerNavigation.BorderColor = Color.FromArgb(0xcb, 0xd4, 0xde);
this.pPlayerNavigation.BorderInsideColor = Color.White;
this.pPlayerNavigation.BorderInsideWidth = 1;
this.pPlayerNavigation.BorderWidth = 1;
this.pPlayerNavigation.Controls.Add(this.playerNavigation);
this.pPlayerNavigation.Location = new System.Drawing.Point(12, 0x11d);
this.pPlayerNavigation.Name = "pPlayerNavigation";
this.pPlayerNavigation.Size = new Size(200, 0xc6);
this.pPlayerNavigation.TabIndex = 1;
this.playerNavigation.BorderStyle = BorderStyle.None;
this.playerNavigation.FullRowSelect = true;
this.playerNavigation.HideSelection = false;
this.playerNavigation.ImageIndex = 0;
this.playerNavigation.ImageList = this.imageList;
this.playerNavigation.ItemHeight = 20;
this.playerNavigation.Location = new System.Drawing.Point(0, 0);
this.playerNavigation.Name = "playerNavigation";
this.playerNavigation.SelectedImageIndex = 0;
this.playerNavigation.set_ShowNodeToolTips(true);
this.playerNavigation.Size = new Size(200, 0xc6);
this.playerNavigation.TabIndex = 0;
this.playerNavigation.AfterCollapse += new TreeViewEventHandler(this.playerNavigation_AfterCollapse);
this.playerNavigation.AfterSelect += new TreeViewEventHandler(this.playerNavigation_AfterSelect);
this.playerNavigation.add_NodeMouseClick(new TreeNodeMouseClickEventHandler(this, (IntPtr) this.playerNavigation_NodeMouseClick));
this.playerNavigation.AfterExpand += new TreeViewEventHandler(this.playerNavigation_AfterExpand);
this.imageList.ImageStream = (ImageListStreamer) manager.GetObject("imageList.ImageStream");
this.imageList.TransparentColor = Color.Transparent;
this.imageList.Images.SetKeyName(0, "NewFolderHS");
this.imageList.Images.SetKeyName(1, "OpenfolderHS");
this.imageList.Images.SetKeyName(2, "Search");
this.imageList.Images.SetKeyName(3, "SMS");
this.imageList.Images.SetKeyName(4, "ForceSMS");
this.imageList.Images.SetKeyName(5, "up");
this.imageList.Images.SetKeyName(6, "down");
this.imageList.Images.SetKeyName(7, "Default");
this.imageList.Images.SetKeyName(8, "IM");
this.imageList.Images.SetKeyName(9, "SendFile");
this.imageList.Images.SetKeyName(10, "Group");
this.imageList.Images.SetKeyName(11, "Contact");
this.imageList.Images.SetKeyName(12, "System");
this.imageList.Images.SetKeyName(13, "Myself");
this.imageList.Images.SetKeyName(14, "File");
this.imageList.Images.SetKeyName(15, "AddBuddy");
this.imageList.Images.SetKeyName(0x10, "Player");
this.imageList.Images.SetKeyName(0x11, "InviteJoinGroup");
this.pMessage.BorderColor = Color.FromArgb(0xcb, 0xd4, 0xde);
this.pMessage.BorderInsideColor = Color.White;
this.pMessage.BorderInsideWidth = 1;
this.pMessage.BorderWidth = 1;
this.pMessage.Controls.Add(this.tbMessage);
this.pMessage.Location = new System.Drawing.Point(0x43, 460);
this.pMessage.Name = "pMessage";
this.pMessage.Size = new Size(0x1a1, 0x8b);
this.pMessage.TabIndex = 12;
this.tbMessage.BackColor = Color.White;
this.tbMessage.BorderColor = Color.Empty;
this.tbMessage.BorderStyle = BorderStyle.None;
this.tbMessage.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
this.tbMessage.Location = new System.Drawing.Point(0, 0);
this.tbMessage.Name = "tbMessage";
this.tbMessage.ReadOnly = true;
this.tbMessage.Size = new Size(0x1a1, 0x8b);
this.tbMessage.TabIndex = 9;
this.tbMessage.Text = "";
this.tbMessage.SelectionChanged += new EventHandler(this.tbMessage_SelectionChanged);
this.pMessageView.BorderColor = Color.FromArgb(0xcb, 0xd4, 0xde);
this.pMessageView.BorderInsideColor = Color.White;
this.pMessageView.BorderInsideWidth = 1;
this.pMessageView.BorderWidth = 1;
this.pMessageView.Controls.Add(this.btnHiddeDetail);
this.pMessageView.Controls.Add(this.pictureBox);
this.pMessageView.Controls.Add(this.dvMessageView);
this.pMessageView.Location = new System.Drawing.Point(0x7d, 0x67);
this.pMessageView.Name = "pMessageView";
this.pMessageView.Size = new Size(0x1b1, 0x107);
this.pMessageView.TabIndex = 11;
this.btnHiddeDetail.BackColor = Color.FromArgb(0xde, 0xe7, 0xf1);
this.btnHiddeDetail.DisabledBackgroundImage = null;
this.btnHiddeDetail.get_FlatAppearance().set_BorderSize(0);
this.btnHiddeDetail.FlatStyle = FlatStyle.Flat;
this.btnHiddeDetail.ForeColor = Color.FromArgb(0xcb, 0xd4, 0xde);
this.btnHiddeDetail.HoverBackgroundImage = null;
this.btnHiddeDetail.set_ImageKey("(无)");
this.btnHiddeDetail.Location = new System.Drawing.Point(0x44, 0x121);
this.btnHiddeDetail.Name = "btnHiddeDetail";
this.btnHiddeDetail.NormalBackgroundImage = null;
this.btnHiddeDetail.PushedBackgroundImage = null;
this.btnHiddeDetail.Size = new Size(0x149, 0x18);
this.btnHiddeDetail.TabIndex = 13;
this.btnHiddeDetail.set_UseVisualStyleBackColor(false);
this.btnHiddeDetail.Click += new EventHandler(this.btnHiddeDetail_Click);
this.pictureBox.BackgroundImage = (Image) manager.GetObject("pictureBox.BackgroundImage");
this.pictureBox.Location = new System.Drawing.Point(0xfd, 0x4a);
this.pictureBox.Name = "pictureBox";
this.pictureBox.Size = new Size(180, 0x9f);
this.pictureBox.TabIndex = 10;
this.pictureBox.TabStop = false;
this.dvMessageView.set_AllowUserToAddRows(false);
this.dvMessageView.set_AllowUserToDeleteRows(false);
this.dvMessageView.set_AllowUserToResizeRows(false);
style.set_BackColor(Color.FromArgb(0xf4, 0xf7, 0xf9));
style.set_ForeColor(Color.Black);
style.set_SelectionBackColor(Color.FromArgb(0xa8, 0xe9, 0xfe));
style.set_SelectionForeColor(Color.Black);
this.dvMessageView.set_AlternatingRowsDefaultCellStyle(style);
this.dvMessageView.set_AutoGenerateColumns(false);
this.dvMessageView.set_AutoSizeColumnsMode(0x10);
this.dvMessageView.set_BackgroundColor(Color.White);
this.dvMessageView.set_BorderStyle(BorderStyle.None);
this.dvMessageView.set_CellBorderStyle(2);
this.dvMessageView.set_ColumnHeadersHeightSizeMode(2);
this.dvMessageView.get_Columns().AddRange(new DataGridViewColumn[] { this.MsgType, this.Sender, this.Receiver, this.MobileNo, this.Body, this.DateString });
this.dvMessageView.set_DataSource(this.sourceManager);
style2.set_Alignment(0x10);
style2.set_BackColor(Color.White);
style2.set_Font(new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0));
style2.set_ForeColor(Color.Black);
style2.set_SelectionBackColor(Color.FromArgb(0xa8, 0xe9, 0xfe));
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?