📄 personalgrouplistcontrol.cs
字号:
this.tsSendGroupSMS = new ToolStripMenuItem();
this.tsInviteFriends = new ToolStripMenuItem();
this.toolStripMenuItem2 = new ToolStripSeparator();
this.tsGroupWebSite = new ToolStripMenuItem();
this.tsGroupMessageHistory = new ToolStripMenuItem();
this.toolStripMenuItem3 = new ToolStripSeparator();
this.tsGroupSetting = new ToolStripMenuItem();
this.tsDeleteGroup = new ToolStripMenuItem();
this.tsExitGroup = new ToolStripMenuItem();
this.tsSendMemberMessage = new ToolStripMenuItem();
this.tsSeperatorForAdd = new ToolStripSeparator();
this.tsAddFriend = new ToolStripMenuItem();
this.tsSeperatorForInfo = new ToolStripSeparator();
this.tsMemberInfo = new ToolStripMenuItem();
this.tsMemberMessageHistory = new ToolStripMenuItem();
this.tsSeparatorForManager = new ToolStripSeparator();
this.tsGroupManage = new ToolStripMenuItem();
this.menuMemberManager = new menu_widget(this.components);
this.tsSetManager = new ToolStripMenuItem();
this.tsCancelManager = new ToolStripMenuItem();
this.toolStripMenuItem7 = new ToolStripSeparator();
this.tsSetSuperManager = new ToolStripMenuItem();
this.toolStripMenuItem8 = new ToolStripSeparator();
this.tsDeleteMember = new ToolStripMenuItem();
this.menuMember = new menu_widget(this.components);
this.tsSeperatorForBlock = new ToolStripSeparator();
this.tsBlockMember = new ToolStripMenuItem();
this.tsModifyGroupNickName = new ToolStripMenuItem();
this.menuBlank = new menu_widget(this.components);
this.tsCreateGroup = new ToolStripMenuItem();
this.tsSearchGroup = new ToolStripMenuItem();
this.menuGroup.SuspendLayout();
this.menuMemberManager.SuspendLayout();
this.menuMember.SuspendLayout();
this.menuBlank.SuspendLayout();
base.SuspendLayout();
this.m_buddytree_vscroll_widget.active_arrow_color = Color.FromArgb(0x48, 0x60, 0xa8);
this.m_buddytree_vscroll_widget.active_arrow_frame_color = Color.FromArgb(0x4a, 0x95, 0xcc);
this.m_buddytree_vscroll_widget.active_thumb_frame_color = Color.FromArgb(0x4a, 0x95, 0xcc);
this.m_buddytree_vscroll_widget.arrow_color = Color.FromArgb(0x88, 0x98, 0x98);
this.m_buddytree_vscroll_widget.begin_color = Color.FromArgb(0xf3, 0xf7, 250);
this.m_buddytree_vscroll_widget.cover_host = true;
this.m_buddytree_vscroll_widget.end_color = Color.FromArgb(0xe2, 0xea, 0xf3);
this.m_buddytree_vscroll_widget.for_buddytree = false;
this.m_buddytree_vscroll_widget.for_pane = false;
this.m_buddytree_vscroll_widget.frame_color = Color.FromArgb(0xe2, 0xea, 0xf3);
this.m_buddytree_vscroll_widget.hook_host = true;
this.m_buddytree_vscroll_widget.host = this.treeGroups;
this.m_buddytree_vscroll_widget.hot_begin_color = Color.FromArgb(0xf3, 0xf7, 250);
this.m_buddytree_vscroll_widget.hot_end_color = Color.FromArgb(0xd0, 0xe8, 0xf5);
this.m_buddytree_vscroll_widget.Location = new System.Drawing.Point(250, 0);
this.m_buddytree_vscroll_widget.Name = "m_buddytree_vscroll_widget";
this.m_buddytree_vscroll_widget.sensitive = true;
this.m_buddytree_vscroll_widget.Size = new Size(0x11, 0x19b);
this.m_buddytree_vscroll_widget.TabIndex = 6;
this.m_buddytree_vscroll_widget.Text = "buddytree_vscroll_widget";
this.m_buddytree_vscroll_widget.thumb_frame_color = Color.FromArgb(0xa8, 0xc1, 0xda);
this.m_buddytree_vscroll_widget.toggle_begin_color = Color.FromArgb(0xf3, 0xf7, 250);
this.m_buddytree_vscroll_widget.toggle_end_color = Color.FromArgb(0xac, 0xe7, 0xff);
this.m_buddytree_vscroll_widget.tunnel_color = Color.FromArgb(0xff, 0xff, 0xff);
this.treeGroups.BackColor = SystemColors.Window;
this.treeGroups.collapse_image = (Image) manager.GetObject("treeGroups.collapse_image");
this.treeGroups.comparer = null;
this.treeGroups.DisplayMode = TreeDisplayMode.Line;
this.treeGroups.Dock = DockStyle.Fill;
this.treeGroups.expand_image = (Image) manager.GetObject("treeGroups.expand_image");
this.treeGroups.F2Edit = true;
_colors.border_color = Color.FromArgb(180, 0xc6, 0xd6);
_colors.bottompart_down_color = Color.FromArgb(0xd7, 0xe5, 0xf7);
_colors.bottompart_up_color = Color.FromArgb(0xb3, 0xd0, 0xf5);
_colors.highlight_color = Color.FromArgb(0xff, 0xff, 0xff);
_colors.toppart_down_color = Color.FromArgb(0xc7, 220, 0xf8);
_colors.toppart_up_color = Color.FromArgb(0xd7, 230, 0xf9);
this.treeGroups.focus_band_colors = _colors;
_colors2.border_color = Color.FromArgb(100, 180, 0xc6, 0xd6);
_colors2.bottompart_down_color = Color.FromArgb(100, 0xd7, 0xe5, 0xf7);
_colors2.bottompart_up_color = Color.FromArgb(100, 0xb3, 0xd0, 0xf5);
_colors2.highlight_color = Color.FromArgb(0xff, 0xff, 0xff);
_colors2.toppart_down_color = Color.FromArgb(100, 0xc7, 220, 0xf8);
_colors2.toppart_up_color = Color.FromArgb(100, 0xd7, 230, 0xf9);
this.treeGroups.hover_band_colors = _colors2;
this.treeGroups.Location = new System.Drawing.Point(0, 0);
this.treeGroups.Name = "treeGroups";
this.treeGroups.NormalCursor = Cursors.Default;
_colors3.border_color = Color.FromArgb(180, 0xc6, 0xd6);
_colors3.bottompart_down_color = Color.FromArgb(0xd7, 0xe5, 0xf7);
_colors3.bottompart_up_color = Color.FromArgb(0xb3, 0xd0, 0xf5);
_colors3.highlight_color = Color.FromArgb(0xff, 0xff, 0xff);
_colors3.toppart_down_color = Color.FromArgb(0xc7, 220, 0xf8);
_colors3.toppart_up_color = Color.FromArgb(0xd7, 230, 0xf9);
this.treeGroups.select_band_colors = _colors3;
this.treeGroups.show_detail = true;
this.treeGroups.Size = new Size(0x10b, 0x19b);
this.treeGroups.TabIndex = 0;
this.menuGroup.get_Items().AddRange(new ToolStripItem[] { this.tsSendGroupMessage, this.tsSendGroupSMS, this.tsInviteFriends, this.toolStripMenuItem2, this.tsGroupWebSite, this.tsGroupMessageHistory, this.toolStripMenuItem3, this.tsGroupSetting, this.tsDeleteGroup, this.tsExitGroup });
this.menuGroup.Name = "mainMenuTools";
this.menuGroup.Size = new Size(0xb7, 0xc0);
this.menuGroup.UseMnemonic = true;
this.tsSendGroupMessage.set_Name("tsSendGroupMessage");
this.tsSendGroupMessage.set_Size(new Size(0xb6, 0x16));
this.tsSendGroupMessage.set_Text("发送群消息");
this.tsSendGroupMessage.add_Click(new EventHandler(this.tsSendGroupMessage_Click));
this.tsSendGroupSMS.set_Image(Resources.PG_Menu_SendSMS);
this.tsSendGroupSMS.set_Name("tsSendGroupSMS");
this.tsSendGroupSMS.set_Size(new Size(0xb6, 0x16));
this.tsSendGroupSMS.set_Text("发送群短信");
this.tsSendGroupSMS.add_Click(new EventHandler(this.tsSendGroupSMS_Click));
this.tsInviteFriends.set_Image(Resources.PG_Menu_Invite);
this.tsInviteFriends.set_Name("tsInviteFriends");
this.tsInviteFriends.set_Size(new Size(0xb6, 0x16));
this.tsInviteFriends.set_Text("邀请飞信好友加入群");
this.tsInviteFriends.add_Click(new EventHandler(this.tsInviteFriends_Click));
this.toolStripMenuItem2.set_Name("toolStripMenuItem2");
this.toolStripMenuItem2.set_Size(new Size(0xb3, 6));
this.tsGroupWebSite.set_Image(Resources.PG_Menu_Website);
this.tsGroupWebSite.set_Name("tsGroupWebSite");
this.tsGroupWebSite.set_Size(new Size(0xb6, 0x16));
this.tsGroupWebSite.set_Text("访问群主页");
this.tsGroupWebSite.add_Click(new EventHandler(this.tsGroupWebSite_Click));
this.tsGroupMessageHistory.set_Image(Resources.PG_Menu_History);
this.tsGroupMessageHistory.set_Name("tsGroupMessageHistory");
this.tsGroupMessageHistory.set_Size(new Size(0xb6, 0x16));
this.tsGroupMessageHistory.set_Text("查看消息历史");
this.tsGroupMessageHistory.add_Click(new EventHandler(this.tsGroupMessageHistory_Click));
this.toolStripMenuItem3.set_Name("toolStripMenuItem3");
this.toolStripMenuItem3.set_Size(new Size(0xb3, 6));
this.tsGroupSetting.set_Image(Resources.PG_Menu_Setup);
this.tsGroupSetting.set_Name("tsGroupSetting");
this.tsGroupSetting.set_Size(new Size(0xb6, 0x16));
this.tsGroupSetting.set_Text("群设置");
this.tsGroupSetting.add_Click(new EventHandler(this.tsGroupSetting_Click));
this.tsDeleteGroup.set_Name("tsDeleteGroup");
this.tsDeleteGroup.set_Size(new Size(0xb6, 0x16));
this.tsDeleteGroup.set_Text("删除群");
this.tsDeleteGroup.add_Click(new EventHandler(this.tsDeleteGroup_Click));
this.tsExitGroup.set_Name("tsExitGroup");
this.tsExitGroup.set_Size(new Size(0xb6, 0x16));
this.tsExitGroup.set_Text("退出群");
this.tsExitGroup.add_Click(new EventHandler(this.tsExitGroup_Click));
this.tsSendMemberMessage.set_Name("tsSendMemberMessage");
this.tsSendMemberMessage.set_Size(new Size(0x92, 0x16));
this.tsSendMemberMessage.set_Text("发送即时消息");
this.tsSendMemberMessage.add_Click(new EventHandler(this.tsSendMemberMessage_Click));
this.tsSeperatorForAdd.set_Name("tsSeperatorForAdd");
this.tsSeperatorForAdd.set_Size(new Size(0x8f, 6));
this.tsAddFriend.set_Name("tsAddFriend");
this.tsAddFriend.set_Size(new Size(0x92, 0x16));
this.tsAddFriend.set_Text("添加为好友");
this.tsAddFriend.add_Click(new EventHandler(this.tsAddFriend_Click));
this.tsSeperatorForInfo.set_Name("tsSeperatorForInfo");
this.tsSeperatorForInfo.set_Size(new Size(0x8f, 6));
this.tsMemberInfo.set_Name("tsMemberInfo");
this.tsMemberInfo.set_Size(new Size(0x92, 0x16));
this.tsMemberInfo.set_Text("个人资料");
this.tsMemberInfo.add_Click(new EventHandler(this.tsMemberInfo_Click));
this.tsMemberMessageHistory.set_Name("tsMemberMessageHistory");
this.tsMemberMessageHistory.set_Size(new Size(0x98, 0x16));
this.tsMemberMessageHistory.set_Text("查看消息历史");
this.tsMemberMessageHistory.add_Click(new EventHandler(this.tsMemberMessageHistory_Click));
this.tsSeparatorForManager.set_Name("tsSeparatorForManager");
this.tsSeparatorForManager.set_Size(new Size(0x8f, 6));
this.tsGroupManage.set_DropDown(this.menuMemberManager);
this.tsGroupManage.set_Name("tsGroupManage");
this.tsGroupManage.set_Size(new Size(0x98, 0x16));
this.tsGroupManage.set_Text("群管理");
this.menuMemberManager.get_Items().AddRange(new ToolStripItem[] { this.tsSetManager, this.tsCancelManager, this.toolStripMenuItem7, this.tsSetSuperManager, this.toolStripMenuItem8, this.tsDeleteMember });
this.menuMemberManager.Name = "menuMemberManager";
this.menuMemberManager.set_OwnerItem(this.tsGroupManage);
this.menuMemberManager.Size = new Size(0x9f, 0x68);
this.menuMemberManager.UseMnemonic = true;
this.tsSetManager.set_Name("tsSetManager");
this.tsSetManager.set_Size(new Size(0x9e, 0x16));
this.tsSetManager.set_Text("设为管理员");
this.tsSetManager.add_Click(new EventHandler(this.tsSetManager_Click));
this.tsCancelManager.set_Name("tsCancelManager");
this.tsCancelManager.set_Size(new Size(0x9e, 0x16));
this.tsCancelManager.set_Text("取消管理员");
this.tsCancelManager.add_Click(new EventHandler(this.tsCancelManager_Click));
this.toolStripMenuItem7.set_Name("toolStripMenuItem7");
this.toolStripMenuItem7.set_Size(new Size(0x9b, 6));
this.tsSetSuperManager.set_Name("tsSetSuperManager");
this.tsSetSuperManager.set_Size(new Size(0x9e, 0x16));
this.tsSetSuperManager.set_Text("设为超级管理员");
this.tsSetSuperManager.add_Click(new EventHandler(this.tsSetSuperManager_Click));
this.toolStripMenuItem8.set_Name("toolStripMenuItem8");
this.toolStripMenuItem8.set_Size(new Size(0x9b, 6));
this.tsDeleteMember.set_Name("tsDeleteMember");
this.tsDeleteMember.set_Size(new Size(0x9e, 0x16));
this.tsDeleteMember.set_Text("删除该成员");
this.tsDeleteMember.add_Click(new EventHandler(this.tsDeleteMember_Click));
this.menuMember.get_Items().AddRange(new ToolStripItem[] { this.tsSendMemberMessage, this.tsSeperatorForAdd, this.tsAddFriend, this.tsSeperatorForBlock, this.tsBlockMember, this.tsSeperatorForInfo, this.tsMemberInfo, this.tsModifyGroupNickName, this.tsMemberMessageHistory, this.tsSeparatorForManager, this.tsGroupManage });
this.menuMember.Name = "mainMenuTools";
this.menuMember.Size = new Size(0x99, 0xcc);
this.menuMember.UseMnemonic = true;
this.tsSeperatorForBlock.set_Name("tsSeperatorForBlock");
this.tsSeperatorForBlock.set_Size(new Size(0x8f, 6));
this.tsBlockMember.set_CheckOnClick(true);
this.tsBlockMember.set_Name("tsBlockMember");
this.tsBlockMember.set_Size(new Size(0x92, 0x16));
this.tsBlockMember.set_Text("屏蔽此人发言");
this.tsBlockMember.add_Click(new EventHandler(this.tsBlockMember_Click));
this.tsModifyGroupNickName.set_Name("tsModifyGroupNickName");
this.tsModifyGroupNickName.set_Size(new Size(0x92, 0x16));
this.tsModifyGroupNickName.set_Text("修改群内昵称");
this.tsModifyGroupNickName.set_Visible(false);
this.tsModifyGroupNickName.add_Click(new EventHandler(this.tsModifyGroupNickName_Click));
this.menuBlank.get_Items().AddRange(new ToolStripItem[] { this.tsCreateGroup, this.tsSearchGroup });
this.menuBlank.Name = "menuMemberManager";
this.menuBlank.Size = new Size(0x6f, 0x30);
this.menuBlank.UseMnemonic = true;
this.tsCreateGroup.set_Name("tsCreateGroup");
this.tsCreateGroup.set_Size(new Size(110, 0x16));
this.tsCreateGroup.set_Text("创建群");
this.tsCreateGroup.add_Click(new EventHandler(this.tsCreateGroup_Click));
this.tsSearchGroup.set_Name("tsSearchGroup");
this.tsSearchGroup.set_Size(new Size(110, 0x16));
this.tsSearchGroup.set_Text("搜索群");
this.tsSearchGroup.add_Click(new EventHandler(this.tsSearchGroup_Click));
base.set_AutoScaleDimensions(new SizeF(6f, 13f));
base.set_AutoScaleMode(1);
base.Controls.Add(this.m_buddytree_vscroll_widget);
base.Controls.Add(this.treeGroups);
base.Name = "PersonalGroupListControl";
base.Size = new Size(0x10b, 0x19b);
this.menuGroup.ResumeLayout(false);
this.menuMemberManager.ResumeLayout(false);
this.menuMember.ResumeLayout(false);
this.menuBlank.ResumeLayout(false);
base.ResumeLayout(false);
}
private void InitializeWndlessComponent()
{
this._lblSearchNone = new WndlessLabel();
this._lblSearchNone.Location = new System.Drawing.Point(this.treeGroups.Location.X + 10, this.treeGroups.Location.Y + 8);
this._lblSearchNone.AutoSize = true;
this._lblSearchNone.Text = StringTable.SearchPersonalGroup.FoundNoneMember;
this._lblSearchNone.BackColor = this.treeGroups.BackColor;
this._lblSearchNone.Visible = true;
this._wndlessCtls = new WndlessControlCollection(this);
this.set_DoubleBuffered(true);
this._wndlessCtls.Add(this._lblSearchNone);
}
private void InitPersonalGroupTreeForMainFrom()
{
try
{
this.treeGroups.comparer = new grouptree_comparer();
this.Currentuser.PersonalGroups.GroupLoadStatusChanged += new EventHandler(this.PersonalGroups_GroupLoadStatusChanged);
if ((this.Currentuser.PersonalGroups.GroupLoadStatus == PersonalGroupLoadStatus.Loaded) || (this.Currentuser.PersonalGroups.GroupLoadStatus == PersonalGroupLoadStatus.Failed))
{
this.AddGroups();
}
this.treeGroups.on_group_expand_changing += new grouptree_widget.group_expand_changing_handler(this.treeGroups_on_group_expand_changing);
this.treeGroups.on_group_expand_changed += new grouptree_widget.group_expand_changed_handler(this.treeGroups_on_group_expand_changed);
this.treeGroups.ItemDoubleClick += new tree_widget.tree_widget_item_handler(this.treeGroups_DoubleClick);
this.treeGroups.on_group_click_portrait += new grouptree_widget.group_click_portrait_handler(this.treeGroups_on_group_click_portrait);
}
catch (Exception exception)
{
ClientLogger.WriteException(exception);
}
}
private void InitPersonalTreeForConversation()
{
try
{
this.treeGroups.comparer = new grouptree_comparer();
if ((this._group.MemberLoadStatus != PersonalGroupLoadStatus.Loaded) && (this._group.MemberLoadStatus != PersonalGroupLoadStatus.Failed))
{
if (this._group.Members.Count > 0)
{
this.AddGroupMembers(this._group);
}
this._group.MemberLoadStatusChanged += new EventHandler<GroupLoadStatusChangedEventArgs>(this, (IntPtr) this._group_MemberLoadStatusChanged);
if (this._group.MemberLoadStatus == PersonalGroupLoadStatus.None)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -