⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 groupconversationform.cs

📁 破解的飞信源代码
💻 CS
📖 第 1 页 / 共 5 页
字号:
            if (emotionImageById != null)
            {
                this._dicMd5Images.Add(id, emotionImageById);
            }
            return emotionImageById;
        }

        private void GroupConversationForm_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.Alt && (e.KeyCode == Keys.S))
            {
                e.set_SuppressKeyPress(true);
                this.SendMessage();
            }
            this._historyChatManager.SendKeys(e.KeyCode, e.Modifiers);
        }

        private void HandleException(Exception ex)
        {
            ClientLogger.WriteException(ex);
        }

        private void InitChatControl()
        {
            EventHandler handler = null;
            try
            {
                this._historyChatManager = new ChatEditCtrlManager(this.rtfHistory, true);
                this._historyChatManager.ReadOnly = true;
                this._historyChatManager.LinkClick += new ChatEditClickEventHandler(this.richEdit_LinkClick);
                this._historyChatManager.BeforeContextMenuShow += new BeforeContextMenuShowHandler(this._historyChatManager_BeforeContextMenuShow);
                this._inputChatManager = new ChatEditCtrlManager(this.rtfInput, false, this.CurrentUser);
                this._inputChatManager.LinkClick += new ChatEditClickEventHandler(this.richEdit_LinkClick);
                this._inputChatManager.AllowDrop = true;
                this._inputChatManager.BeforeContextMenuShow += new BeforeContextMenuShowHandler(this._inputChatManager_BeforeContextMenuShow);
                this._inputChatManager.KeyDown += new KeyEventHandler(this._inputChatManager_KeyDown);
                this._historyChatManager.DefaultTextFont = this.CurrentUser.Configuration.UserSetting.ConversationSetting.DefaultFont;
                this._historyChatManager.SelectionFont = this.CurrentUser.Configuration.SystemSetting.SysConversationSetting.HistoryFont;
                this._historyChatManager.ForeColor = SystemColors.ControlText;
                this._historyChatManager.ContextMenuStrip = this.menuHistoryChat;
                this._inputChatManager.ContextMenuStrip = this.menuInputChat;
                this._inputChatManager.DefaultTextFont = this.CurrentUser.Configuration.UserSetting.ConversationSetting.DefaultFont;
                this.rtfInput.MaxLength = this.CurrentUser.Configuration.SystemSetting.SysConversationSetting.MaxLengthOneMessage;
                GlobalTimer.Register(new EventHandler(this.Timer_UpdateEmotion_Tick), this, 2);
                base.Activated += new EventHandler(this.This_ActivatedOrShown);
                base.add_Shown(new EventHandler(this.This_ActivatedOrShown));
                this._inputChatManager.ConvertString = new DelegateConvert(GroupConversationForm.ConvertString);
                this._historyChatManager.ConvertString = new DelegateConvert(GroupConversationForm.ConvertString);
                this._historyChatManager.GetCustomEmotion = new ChatEditCtrlManager.GetCustomEmotionDelegate(this.GetCustomEmotion);
                this._historyChatManager.GetCustomEmotionImage = new ChatEditCtrlManager.GetCustomEmotionImageDelegate(this.GetCustomEmotionImage);
                this._inputChatManager.GetCustomEmotion = new ChatEditCtrlManager.GetCustomEmotionDelegate(this.GetCustomEmotion);
                this._inputChatManager.GetCustomEmotionImage = new ChatEditCtrlManager.GetCustomEmotionImageDelegate(this.GetCustomEmotionImage);
                this._inputChatManager.AutoParseCustomEmotion = true;
                if (handler == null)
                {
                    handler = delegate {
                        this.btnSend.Disabled = this.rtfInput.TextLength == 0;
                        this.FormatSMSInputInfo();
                    };
                }
                this.rtfInput.TextChanged += handler;
                this._historyChatManager.SympolSize = this._defaultEmotionSize;
                this._inputChatManager.SympolSize = this._messageEmotionSize;
                if (EnvHelper.DynamicGifCtlRegistered)
                {
                    this._historyChatManager.ConvertSympol = true;
                    this._inputChatManager.ConvertSympol = true;
                }
            }
            catch (Exception exception)
            {
                this.HandleException(exception);
            }
        }

        private void InitCommonControls()
        {
            this.InitGroupMembersLable();
            this.InitGroupCaption();
        }

        private void InitConversation()
        {
            try
            {
                this.AddConversationEvent();
                this.CurrentConversation.OwnerFormCreated = true;
                if ((base.WindowState == FormWindowState.Minimized) && (this._frameworkWnd.ConversationManager is ConversationManagerImp))
                {
                    (this._frameworkWnd.ConversationManager as ConversationManagerImp).PlayMessageReceiveSource();
                }
            }
            catch (Exception exception)
            {
                ClientLogger.WriteException(exception);
            }
        }

        private void InitDisplayEmoticon()
        {
            this.de = new DisplayEmoticons(ImpsEmoticons.DistinctEmoticonList, ImpsEmoticons.DistinctEmoticonList, this._frameworkWnd);
            this.de.RowCount = 5;
            this.de.DisplayEmoticonsHide += new EventHandler(this.de_DisplayEmoticonsHide);
            this.de.EmoticonSelected += new EventHandler<EmoticonEventArgs>(this, (IntPtr) this.emotion_EmoticonSelected);
        }

        private void InitGroupCaption()
        {
            base.Text = string.Format("{0} - {1}", this._group.GroupInfo.Name, this._group.GroupInfo.Id);
        }

        private void InitGroupMembersLable()
        {
            try
            {
                this.lblGroupMembersInfo.Text = string.Format("群在线{0}人/共{1}人", this._group.GroupInfo.OnLineMembersCount, this._group.Members.Count);
            }
            catch (Exception exception)
            {
                ClientLogger.WriteException(exception);
            }
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(GroupConversationForm));
            this.pnlTop = new Panel();
            this.pnlRight = new Panel();
            this.pnlContainer = new Panel();
            this.pnlCenter = new Panel();
            this.scMain = new IMSplitContainer();
            this.panel1 = new Panel();
            this.rtfHistory = new ChatRichTextBox();
            this.lblTooltip = new XConversationTip();
            this.lblSMSSendInfo = new HtmlLabel();
            this.pnlForWhiteBackground = new Panel();
            this.rtfInput = new ChatRichTextBox();
            this.pnlSendTypeImage = new Panel();
            this.pictureBox1 = new PictureBox();
            this.btnSend = new SendMessageButton();
            this.menuSendType = new menu_widget(this.components);
            this.tsSendEnter = new ToolStripMenuItem();
            this.tsSendCtrlEnter = new ToolStripMenuItem();
            this.tsSendMessage = new IMToolstrip();
            this.tsbEmoticons = new ToolStripButton();
            this.tsFont = new ToolStripButton();
            this.pnlNav = new Panel();
            this.fontDialog = new FontDialog();
            this.menuHistoryChat = new menu_widget(this.components);
            this.tsHistoryChatCopy = new ToolStripMenuItem();
            this.tsHistoryChatSelectAll = new ToolStripMenuItem();
            this.tsHistorySeparator = new ToolStripSeparator();
            this.tsHistoryAddToCustomEmotion = new ToolStripMenuItem();
            this.tsHistorySaveAsImage = new ToolStripMenuItem();
            this.menuInputChat = new menu_widget(this.components);
            this.tsInputChatUndo = new ToolStripMenuItem();
            this.toolStripSeparator2 = new ToolStripSeparator();
            this.tsInputChatCut = new ToolStripMenuItem();
            this.tsInputChatCopy = new ToolStripMenuItem();
            this.tsInputChatPaste = new ToolStripMenuItem();
            this.tsInputChatDelete = new ToolStripMenuItem();
            this.toolStripSeparator3 = new ToolStripSeparator();
            this.tsInputChatSelectALl = new ToolStripMenuItem();
            this.toolStripSeparator9 = new ToolStripSeparator();
            this.tsInputChangeFont = new ToolStripMenuItem();
            this.lblGroupMembersInfo = new Label();
            this.saveFileDialog = new SaveFileDialog();
            this.pnlContainer.SuspendLayout();
            this.pnlCenter.SuspendLayout();
            this.scMain.get_Panel1().SuspendLayout();
            this.scMain.get_Panel2().SuspendLayout();
            this.scMain.SuspendLayout();
            this.panel1.SuspendLayout();
            this.pnlForWhiteBackground.SuspendLayout();
            this.pnlSendTypeImage.SuspendLayout();
            this.pictureBox1.BeginInit();
            this.menuSendType.SuspendLayout();
            this.tsSendMessage.SuspendLayout();
            this.menuHistoryChat.SuspendLayout();
            this.menuInputChat.SuspendLayout();
            base.SuspendLayout();
            this.pnlTop.BackColor = Color.Transparent;
            this.pnlTop.Dock = DockStyle.Top;
            this.pnlTop.Location = new System.Drawing.Point(0, 0);
            this.pnlTop.Name = "pnlTop";
            this.pnlTop.Size = new Size(510, 0x44);
            this.pnlTop.TabIndex = 0;
            this.pnlRight.BackColor = Color.Transparent;
            this.pnlRight.Dock = DockStyle.Right;
            this.pnlRight.Location = new System.Drawing.Point(0x15a, 0x44);
            this.pnlRight.Name = "pnlRight";
            this.pnlRight.set_Padding(new Padding(4, 4, 0, 3));
            this.pnlRight.Size = new Size(0x9a, 0x1b2);
            this.pnlRight.TabIndex = 4;
            this.pnlContainer.BackColor = Color.Transparent;
            this.pnlContainer.Controls.Add(this.pnlCenter);
            this.pnlContainer.Controls.Add(this.pnlRight);
            this.pnlContainer.Controls.Add(this.pnlNav);
            this.pnlContainer.Controls.Add(this.pnlTop);
            this.pnlContainer.Dock = DockStyle.Fill;
            this.pnlContainer.Location = new System.Drawing.Point(4, 0);
            this.pnlContainer.set_Margin(new Padding(0));
            this.pnlContainer.Name = "pnlContainer";
            this.pnlContainer.Size = new Size(510, 0x1f6);
            this.pnlContainer.TabIndex = 2;
            this.pnlCenter.BackColor = Color.Transparent;
            this.pnlCenter.Controls.Add(this.scMain);
            this.pnlCenter.Dock = DockStyle.Fill;
            this.pnlCenter.Location = new System.Drawing.Point(0, 0x44);
            this.pnlCenter.Name = "pnlCenter";
            this.pnlCenter.set_Padding(new Padding(2, 4, 0, 3));
            this.pnlCenter.Size = new Size(0x15a, 0x1b2);
            this.pnlCenter.TabIndex = 3;
            this.scMain.BackColor = Color.Transparent;
            this.scMain.BorderColor = Color.FromArgb(0xa4, 170, 220);
            this.scMain.set_Dock(DockStyle.Fill);
            this.scMain.Location = new System.Drawing.Point(2, 4);
            this.scMain.Name = "scMain";
            this.scMain.set_Orientation(Orientation.Horizontal);
            this.scMain.get_Panel1().BackColor = Color.White;
            this.scMain.get_Panel1().Controls.Add(this.panel1);
            this.scMain.get_Panel1().Controls.Add(this.lblTooltip);
            this.scMain.get_Panel1().set_Margin(new Padding(4));
            this.scMain.get_Panel1().set_Padding(new Padding(1));
            this.scMain.set_Panel1MinSize(70);
            this.scMain.get_Panel2().BackColor = Color.Transparent;
            this.scMain.get_Panel2().Controls.Add(this.lblSMSSendInfo);
            this.scMain.get_Panel2().Controls.Add(this.pnlForWhiteBackground);
            this.scMain.get_Panel2().Controls.Add(this.pnlSendTypeImage);
            this.scMain.get_Panel2().Controls.Add(this.btnSend);
            this.scMain.get_Panel2().Controls.Add(this.tsSendMessage);
            this.scMain.get_Panel2().set_Padding(new Padding(1));
            this.scMain.set_Panel2MinSize(110);
            this.scMain.Size = new Size(0x158, 0x1ab);
            this.scMain.SpliteImage = (Image) manager.GetObject("scMain.SpliteImage");
            this.scMain.set_SplitterDistance(0x12b);
            this.scMain.set_SplitterWidth(9);
            this.scMain.TabIndex = 3;
            this.scMain.set_TabStop(false);
            this.panel1.BackColor = Color.Transparent;
            this.panel1.Controls.Add(this.rtfHistory);
            this.panel1.Dock = DockStyle.Fill;
            this.panel1.Location = new System.Drawing.Point(1, 20);
            this.panel1.Name = "panel1";
            this.panel1.set_Padding(new Padding(4, 4, 0, 1));
            this.panel1.Size = new Size(0x156, 0x116);
            this.panel1.TabIndex = 1;
            this.rtfHistory.BackColor = SystemColors.Window;
            this.rtfHistory.BorderColor = Color.Empty;
            this.rtfHistory.BorderStyle = BorderStyle.None;
            this.rtfHistory.Dock = DockStyle.Fill;
            this.rtfHistory.Location = new System.Drawing.Point(4, 4);
            this.rtfHistory.Name = "rtfHistory";
            this.rtfHistory.ReadOnly = true;
            this.rtfHistory.Size = new Size(0x152, 0x111);
            this.rtfHistory.TabIndex = 0;
            this.rtfHistory.TabStop = false;
            this.rtfHistory.Text = "";
            this.lblTooltip.BackColor = Color.Transparent;
            this.lblTooltip.Dock = DockStyle.Top;
            this.lblTooltip.HTML = "";
            this.lblTooltip.LineColor = Color.FromArgb(0xa4, 170, 220);
            this.lblTooltip.Location = new System.Drawing.Point(1, 1);
            this.lblTooltip.Name = "lblTooltip";
            this.lblTooltip.Size = new Size(0x156, 0x13);
            this.lblTooltip.TabIndex = 0;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -