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

📄 groupsmsform.cs

📁 破解的飞信源代码
💻 CS
📖 第 1 页 / 共 3 页
字号:
            this.txtSendContent.BorderStyle = BorderStyle.None;
            this.txtSendContent.Dock = DockStyle.Fill;
            this.txtSendContent.EmptyTextTip = "";
            this.txtSendContent.EmptyTextTipColor = Color.DarkGray;
            this.txtSendContent.Location = new System.Drawing.Point(1, 1);
            this.txtSendContent.set_MinimumSize(new Size(2, 40));
            this.txtSendContent.Multiline = true;
            this.txtSendContent.Name = "txtSendContent";
            this.txtSendContent.RightToLeft = RightToLeft.No;
            this.txtSendContent.ScrollBars = ScrollBars.Vertical;
            this.txtSendContent.Size = new Size(0x169, 0x54);
            this.txtSendContent.TabIndex = 8;
            this.txtSendContent.TextChanged += new EventHandler(this.txtSendContent_TextChanged);
            this.txtSendContent.KeyDown += new KeyEventHandler(this.txtSendContent_KeyDown);
            this.menuSendType.get_Items().AddRange(new ToolStripItem[] { this.tsSendEnter, this.tsSendCtrlEnter });
            this.menuSendType.Name = "contextMenuSendMessage";
            this.menuSendType.Size = new Size(0xcc, 0x30);
            this.menuSendType.UseMnemonic = true;
            this.tsSendEnter.set_Checked(true);
            this.tsSendEnter.set_CheckState(CheckState.Checked);
            this.tsSendEnter.set_Name("tsSendEnter");
            this.tsSendEnter.set_Size(new Size(0xcb, 0x16));
            this.tsSendEnter.set_Text("按 Enter 键发送消息");
            this.tsSendEnter.add_Click(new EventHandler(this.tsSendEnter_Click));
            this.tsSendCtrlEnter.set_Name("tsSendCtrlEnter");
            this.tsSendCtrlEnter.set_Size(new Size(0xcb, 0x16));
            this.tsSendCtrlEnter.set_Text("按 Ctrl+Enter 键发送消息");
            this.tsSendCtrlEnter.add_Click(new EventHandler(this.tsSendCtrlEnter_Click));
            this.pnlMain.BackColor = Color.Transparent;
            this.pnlMain.Controls.Add(this.btnSend);
            this.pnlMain.Controls.Add(this.btnTimingManager);
            this.pnlMain.Controls.Add(this.pickMinute);
            this.pnlMain.Controls.Add(this.pickHour);
            this.pnlMain.Controls.Add(this.lblDay);
            this.pnlMain.Controls.Add(this.lblMonth);
            this.pnlMain.Controls.Add(this.lblYear);
            this.pnlMain.Controls.Add(this.pickYear);
            this.pnlMain.Controls.Add(this.chkTimingSMS);
            this.pnlMain.Controls.Add(this.lblInputInfo);
            this.pnlMain.Controls.Add(this.panel2);
            this.pnlMain.Controls.Add(this.panel1);
            this.pnlMain.Controls.Add(this.plInviteContacts);
            this.pnlMain.Location = new System.Drawing.Point(3, 6);
            this.pnlMain.Name = "pnlMain";
            this.pnlMain.Size = new Size(0x26b, 0x1fc);
            this.pnlMain.TabIndex = 6;
            this.btnSend.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
            this.btnSend.AutoArrangementX = true;
            this.btnSend.AutoSizeToImage = false;
            this.btnSend.BackColor = Color.Transparent;
            this.btnSend.BackgroundImage = (Image) manager.GetObject("btnSend.BackgroundImage");
            this.btnSend.BackgroundImageDisable = (Image) manager.GetObject("btnSend.BackgroundImageDisable");
            this.btnSend.BackgroundImageDown = (Image) manager.GetObject("btnSend.BackgroundImageDown");
            this.btnSend.BackgroundImageHover = (Image) manager.GetObject("btnSend.BackgroundImageHover");
            this.btnSend.ChangeSkin = false;
            this.btnSend.Enabled = false;
            this.btnSend.Location = new System.Drawing.Point(0x217, 0x1df);
            this.btnSend.Name = "btnSend";
            this.btnSend.Size = new Size(0x51, 0x15);
            this.btnSend.TabIndex = 13;
            this.btnSend.Text = "发送";
            this.btnSend.set_UseVisualStyleBackColor(false);
            this.btnSend.Click += new EventHandler(this.btnSend_Click);
            this.btnTimingManager.AutoArrangementX = true;
            this.btnTimingManager.AutoSizeToImage = false;
            this.btnTimingManager.BackColor = Color.Transparent;
            this.btnTimingManager.BackgroundImage = (Image) manager.GetObject("btnTimingManager.BackgroundImage");
            this.btnTimingManager.BackgroundImageDisable = (Image) manager.GetObject("btnTimingManager.BackgroundImageDisable");
            this.btnTimingManager.BackgroundImageDown = (Image) manager.GetObject("btnTimingManager.BackgroundImageDown");
            this.btnTimingManager.BackgroundImageHover = (Image) manager.GetObject("btnTimingManager.BackgroundImageHover");
            this.btnTimingManager.ChangeSkin = false;
            this.btnTimingManager.Image = Resources.GroupSms;
            this.btnTimingManager.ImageAlign = ContentAlignment.TopLeft;
            this.btnTimingManager.Location = new System.Drawing.Point(0xfd, 0x16b);
            this.btnTimingManager.Name = "btnTimingManager";
            this.btnTimingManager.Size = new Size(0x7c, 0x15);
            this.btnTimingManager.TabIndex = 7;
            this.btnTimingManager.Text = "定时短信管理器";
            this.btnTimingManager.TextAlign = ContentAlignment.MiddleLeft;
            this.btnTimingManager.set_TextImageRelation(4);
            this.btnTimingManager.set_UseVisualStyleBackColor(false);
            this.btnTimingManager.Click += new EventHandler(this.btnTimingManager_Click);
            this.pickMinute.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
            int[] bits = new int[4];
            bits[0] = 5;
            this.pickMinute.Increment = new decimal(bits);
            this.pickMinute.Location = new System.Drawing.Point(0x1dc, 0x1e1);
            int[] numArray2 = new int[4];
            numArray2[0] = 0x37;
            this.pickMinute.Maximum = new decimal(numArray2);
            this.pickMinute.Name = "pickMinute";
            this.pickMinute.Size = new Size(0x29, 20);
            this.pickMinute.TabIndex = 12;
            this.pickMinute.Visible = false;
            this.pickMinute.ValueChanged += new EventHandler(this.pickMinute_ValueChanged);
            this.pickHour.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
            this.pickHour.Location = new System.Drawing.Point(420, 0x1e1);
            int[] numArray3 = new int[4];
            numArray3[0] = 0x17;
            this.pickHour.Maximum = new decimal(numArray3);
            this.pickHour.Name = "pickHour";
            this.pickHour.Size = new Size(0x29, 20);
            this.pickHour.TabIndex = 11;
            int[] numArray4 = new int[4];
            numArray4[0] = 12;
            this.pickHour.Value = new decimal(numArray4);
            this.pickHour.Visible = false;
            this.lblDay.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
            this.lblDay.set_AutoSize(true);
            this.lblDay.Location = new System.Drawing.Point(0x204, 0x1e5);
            this.lblDay.Name = "lblDay";
            this.lblDay.Size = new Size(0x13, 13);
            this.lblDay.TabIndex = 11;
            this.lblDay.Text = "分";
            this.lblDay.Visible = false;
            this.lblMonth.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
            this.lblMonth.set_AutoSize(true);
            this.lblMonth.Location = new System.Drawing.Point(460, 0x1e6);
            this.lblMonth.Name = "lblMonth";
            this.lblMonth.Size = new Size(0x13, 13);
            this.lblMonth.TabIndex = 11;
            this.lblMonth.Text = "时";
            this.lblMonth.Visible = false;
            this.lblYear.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
            this.lblYear.set_AutoSize(true);
            this.lblYear.Location = new System.Drawing.Point(0x194, 0x1e6);
            this.lblYear.Name = "lblYear";
            this.lblYear.Size = new Size(0x13, 13);
            this.lblYear.TabIndex = 11;
            this.lblYear.Text = "日";
            this.lblYear.Visible = false;
            this.pickYear.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
            this.pickYear.Format = DateTimePickerFormat.Short;
            this.pickYear.Location = new System.Drawing.Point(320, 0x1e1);
            this.pickYear.MinDate = new DateTime(0x7d7, 2, 0x1c, 0, 0, 0, 0);
            this.pickYear.Name = "pickYear";
            this.pickYear.RightToLeft = RightToLeft.No;
            this.pickYear.Size = new Size(0x53, 20);
            this.pickYear.TabIndex = 10;
            this.pickYear.Visible = false;
            this.chkTimingSMS.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
            this.chkTimingSMS.set_AutoSize(true);
            this.chkTimingSMS.Location = new System.Drawing.Point(0xfc, 0x1e4);
            this.chkTimingSMS.Name = "chkTimingSMS";
            this.chkTimingSMS.Size = new Size(0x4a, 0x11);
            this.chkTimingSMS.TabIndex = 9;
            this.chkTimingSMS.Text = "定时短信";
            this.chkTimingSMS.set_UseVisualStyleBackColor(true);
            this.chkTimingSMS.CheckedChanged += new EventHandler(this.chkTimingSMS_CheckedChanged);
            this.panel2.BackColor = Color.FromArgb(0xca, 0xd4, 0xde);
            this.panel2.Controls.Add(this.txtSendContent);
            this.panel2.Location = new System.Drawing.Point(0xfb, 0x183);
            this.panel2.Name = "panel2";
            this.panel2.set_Padding(new Padding(1));
            this.panel2.Size = new Size(0x16b, 0x56);
            this.panel2.TabIndex = 5;
            this.panel1.BackColor = Color.FromArgb(0xca, 0xd4, 0xde);
            this.panel1.Controls.Add(this.txtHistory);
            this.panel1.Location = new System.Drawing.Point(0xfb, 11);
            this.panel1.Name = "panel1";
            this.panel1.set_Padding(new Padding(1));
            this.panel1.Size = new Size(0x16b, 0x15d);
            this.panel1.TabIndex = 4;
            base.set_AutoScaleDimensions(new SizeF(6f, 13f));
            base.set_AutoScaleMode(1);
            base.BaseHeight = 0x248;
            base.BaseWidth = 0x27d;
            base.ClientSize = new Size(0x27d, 0x248);
            base.Controls.Add(this.pnlMain);
            base.DisplayLocation = new System.Drawing.Point(0, -95);
            base.DisplaySize = new Size(0x27d, 0x248);
            base.Icon = (Icon) manager.GetObject("$this.Icon");
            this.set_MinimumSize(new Size(520, 460));
            base.Name = "GroupSMSForm";
            base.set_Padding(new Padding(3));
            base.Text = "群发短信";
            this.menuSendType.ResumeLayout(false);
            this.pnlMain.ResumeLayout(false);
            this.pnlMain.PerformLayout();
            this.pickMinute.EndInit();
            this.pickHour.EndInit();
            this.panel2.ResumeLayout(false);
            this.panel2.PerformLayout();
            this.panel1.ResumeLayout(false);
            base.ResumeLayout(false);
        }

        private void InitTimingDate()
        {
            try
            {
                DateTime time = DateTime.Now.AddMinutes(30);
                this.pickYear.Value = time;
                this.pickHour.Value = time.Hour;
                this.pickMinute.Value = time.Minute;
            }
            catch (Exception)
            {
            }
        }

        private void Localize()
        {
            this.btnSend.Text = StringTable.Conversation.BtnSend;
        }

        protected override void OnFormClosed(FormClosedEventArgs e)
        {
            this._historyChatManager = null;
            this.CurrentUser.StatusChanged -= new EventHandler<UserSatusChangedEventArgs>(this, (IntPtr) this.CurrentUser_StatusChanged);
            if (this._groupSMSFailedForm != null)
            {
                this._groupSMSFailedForm.Close();
            }
            base.OnFormClosed(e);
            this.CurrentUser.Configuration.UserSetting.ConversationSetting.SendMessageByEnterKey.Value = this.tsSendEnter.get_Checked();
        }

        protected override void OnFormClosing(FormClosingEventArgs e)
        {
            if (((this._stackSMSItems.get_Count() > 0) && !this._sendFrequent) && (this._frameworkWin.UnifiedMessageBox.ShowConfirmation(this, "如果您现在关闭窗口,将无法看到短信发送的结果,\r\n\r\n是否现在就关闭窗口?") != DialogResult.Yes))
            {
                e.Cancel = true;
            }
            else
            {
                base.OnFormClosing(e);
            }
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            try
            {
                this.txtSendContent.MaxLength = this.MaxInputLength;
                this.Localize();
                this.FormatSendInfo();
                if (this.CurrentUser.Configuration.UserSetting.ConversationSetting.SendMessageByEnterKey == null)
                {
                    this.tsSendCtrlEnter.set_Checked(true);
                    this.tsSendEnter.set_Checked(false);
                }
                this.inviteControl.SearchTextboxAtTop = true;
                this.inviteControl.SplitterDistance = this.panel1.Height + 2;
            }
            catch
            {
            }
        }

        private void op_ImpsError(object sender, ImpsErrorEventArgs e)
        {
            if (!base.IsDisposed && (e.Description == "486"))
            {
                this._sendFrequent = true;
                this._historyChatManager.LinkButtonFont = new Font("Microsoft Sans Serif", 9.5f, FontStyle.Regular, GraphicsUnit.Point, 0);
                this._historyChatManager.AppentString("<font size=9.5 color=#a31515>【系统提示】: " + StringHelper.EncodString(e.Summary) + "</font>");
                OleKey newKey = OleKeyManager.Instance.NewKey;
                this._historyChatManager.AppendLink(newKey, "详细内容", "frequent");
                this._historyChatManager.AppendCRLF();
                this.txtSendContent.Enabled = false;
                this.txtSendContent.Enabled = false;
            }
            else
            {
                this.SendNext();
            }
        }

        private void op_Successed(object sender, EventArgs e)
        {
            this.SendNext();
        }

        private void opTriming_ImpsError(object sender, ImpsErrorEventArgs e)
        {
            if (!base.IsDisposed && !string.IsNullOrEmpty(e.Summary))
            {
                try
                {
                    this._historyChatManager.AppentString(string.Format("<font size=9.5 color=#a31515>【系统提示】:{0}</font>", StringHelper.EncodString(e.Summary)));
                    this._historyChatManager.AppendCRLF();
                }
                catch (Exception exception)
                {
                    ClientLogger.WriteException(exception);
                }
            }
        }

        private void opTriming_Successed(object sender, EventArgs e)

⌨️ 快捷键说明

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