📄 sendrequestform.cs
字号:
this.linkLabelNewGroup.HoverBackgroundImage = (Image) manager.GetObject("linkLabelNewGroup.HoverBackgroundImage");
this.linkLabelNewGroup.Location = new System.Drawing.Point(0x102, 0x30);
this.linkLabelNewGroup.Name = "linkLabelNewGroup";
this.linkLabelNewGroup.NormalBackgroundImage = (Image) manager.GetObject("linkLabelNewGroup.NormalBackgroundImage");
this.linkLabelNewGroup.PushedBackgroundImage = (Image) manager.GetObject("linkLabelNewGroup.PushedBackgroundImage");
this.linkLabelNewGroup.Size = new Size(0x53, 0x15);
this.linkLabelNewGroup.TabIndex = 40;
this.linkLabelNewGroup.Text = "添加分组";
this.linkLabelNewGroup.TextAlign = ContentAlignment.MiddleRight;
this.linkLabelNewGroup.set_UseVisualStyleBackColor(true);
this.linkLabelNewGroup.Click += new EventHandler(this.linkLabelNewGroup_LinkClicked);
this.label4.set_AutoSize(true);
this.label4.Location = new System.Drawing.Point(0x53, 0x33);
this.label4.Name = "label4";
this.label4.Size = new Size(0x22, 13);
this.label4.TabIndex = 14;
this.label4.Text = "分组:";
this.linkLabelDetail.set_AutoSize(true);
this.linkLabelDetail.LinkColor = Color.Green;
this.linkLabelDetail.Location = new System.Drawing.Point(11, 0x51);
this.linkLabelDetail.Name = "linkLabelDetail";
this.linkLabelDetail.Size = new Size(0x37, 13);
this.linkLabelDetail.TabIndex = 0x1d;
this.linkLabelDetail.TabStop = true;
this.linkLabelDetail.Text = "查看资料";
this.linkLabelDetail.LinkClicked += new LinkLabelLinkClickedEventHandler(this.linkLabelDetail_LinkClicked);
this.label3.set_AutoSize(true);
this.label3.Location = new System.Drawing.Point(0x53, 0x15);
this.label3.Name = "label3";
this.label3.Size = new Size(0x25, 13);
this.label3.TabIndex = 13;
this.label3.Text = "昵称: ";
this.groupBoxPreview.Controls.Add(this.label15);
this.groupBoxPreview.Controls.Add(this.textBoxMyName);
this.groupBoxPreview.Controls.Add(this.lbIAm);
this.groupBoxPreview.Location = new System.Drawing.Point(7, 0x4d);
this.groupBoxPreview.Name = "groupBoxPreview";
this.groupBoxPreview.Size = new Size(0x165, 0x3b);
this.groupBoxPreview.TabIndex = 0x18;
this.groupBoxPreview.TabStop = false;
this.groupBoxPreview.Text = "发出申请";
this.label15.set_AutoSize(true);
this.label15.BorderColor = Color.Empty;
this.label15.ButtonBorderStyle = ButtonBorderStyle.None;
this.label15.Location = new System.Drawing.Point(0x6d, 0x1b);
this.label15.Name = "label15";
this.label15.Size = new Size(0xf7, 13);
this.label15.TabIndex = 0x1a;
this.label15.Text = ",正在用中国移动飞信业务,想加你为好友。";
this.label15.UseMnemonic = false;
this.tabPageVodafone.BackColor = Color.Transparent;
this.tabPageVodafone.Controls.Add(this.xTextBoxNicknameV);
this.tabPageVodafone.Controls.Add(label);
this.tabPageVodafone.Controls.Add(label2);
this.tabPageVodafone.Controls.Add(label3);
this.tabPageVodafone.Controls.Add(label4);
this.tabPageVodafone.Controls.Add(label5);
this.tabPageVodafone.Controls.Add(this.linkLabelNicknameSIDV);
this.tabPageVodafone.Controls.Add(this.linkLabelNicknameMobileNoV);
this.tabPageVodafone.Controls.Add(this.linkLabelNewGroupV);
this.tabPageVodafone.Controls.Add(label6);
this.tabPageVodafone.Controls.Add(this.comboBoxGroupV);
this.tabPageVodafone.Controls.Add(this.label5);
this.tabPageVodafone.Controls.Add(this.xTextBoxMobileNoV);
this.tabPageVodafone.Controls.Add(this.radioButtonMobileNoV);
this.tabPageVodafone.Controls.Add(this.xTextBoxSIDV);
this.tabPageVodafone.Controls.Add(this.radioButtonSIDV);
this.tabPageVodafone.DisplayIndex = 0;
this.tabPageVodafone.Hided = false;
this.tabPageVodafone.Image = (Image) manager.GetObject("tabPageVodafone.Image");
this.tabPageVodafone.ImageIndex = -1;
this.tabPageVodafone.ImageKey = "";
this.tabPageVodafone.Location = new System.Drawing.Point(3, 0x17);
this.tabPageVodafone.Name = "tabPageVodafone";
this.tabPageVodafone.set_Padding(new Padding(3));
this.tabPageVodafone.Selected = false;
this.tabPageVodafone.Size = new Size(0x16d, 0xf6);
this.tabPageVodafone.TabIndex = 1;
this.tabPageVodafone.TabRectangle = new Rectangle(0x4e, 3, 0x7d, 20);
this.tabPageVodafone.Text = "沃达丰(Vodafone)";
this.tabPageVodafone.ToolTipText = "";
this.xTextBoxNicknameV.BackColor = Color.White;
this.xTextBoxNicknameV.BorderStyle = BorderStyle.FixedSingle;
this.xTextBoxNicknameV.EmptyTextTip = "";
this.xTextBoxNicknameV.EmptyTextTipColor = Color.DarkGray;
this.xTextBoxNicknameV.Location = new System.Drawing.Point(90, 0xbd);
this.xTextBoxNicknameV.MaxLength = 15;
this.xTextBoxNicknameV.Name = "xTextBoxNicknameV";
this.xTextBoxNicknameV.Size = new Size(0xa8, 20);
this.xTextBoxNicknameV.TabIndex = 30;
this.linkLabelNicknameSIDV.set_AutoEllipsis(true);
this.linkLabelNicknameSIDV.BackColor = Color.Transparent;
this.linkLabelNicknameSIDV.Location = new System.Drawing.Point(0x142, 0x62);
this.linkLabelNicknameSIDV.Name = "linkLabelNicknameSIDV";
this.linkLabelNicknameSIDV.Size = new Size(0x59, 13);
this.linkLabelNicknameSIDV.TabIndex = 0x15;
this.linkLabelNicknameSIDV.TabStop = true;
this.linkLabelNicknameSIDV.Text = "昵称:";
this.linkLabelNicknameMobileNoV.set_AutoEllipsis(true);
this.linkLabelNicknameMobileNoV.BackColor = Color.Transparent;
this.linkLabelNicknameMobileNoV.Location = new System.Drawing.Point(0x143, 50);
this.linkLabelNicknameMobileNoV.Name = "linkLabelNicknameMobileNoV";
this.linkLabelNicknameMobileNoV.Size = new Size(0x5e, 13);
this.linkLabelNicknameMobileNoV.TabIndex = 20;
this.linkLabelNicknameMobileNoV.TabStop = true;
this.linkLabelNicknameMobileNoV.Text = "昵称:";
this.linkLabelNewGroupV.set_AutoSize(true);
this.linkLabelNewGroupV.BackColor = Color.Transparent;
this.linkLabelNewGroupV.Location = new System.Drawing.Point(420, 0xd8);
this.linkLabelNewGroupV.Name = "linkLabelNewGroupV";
this.linkLabelNewGroupV.Size = new Size(0x37, 13);
this.linkLabelNewGroupV.TabIndex = 0x13;
this.linkLabelNewGroupV.TabStop = true;
this.linkLabelNewGroupV.Text = "添加新组";
this.linkLabelNewGroupV.LinkClicked += new LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
this.comboBoxGroupV.BackColor = Color.White;
this.comboBoxGroupV.EmptyTextTip = "";
this.comboBoxGroupV.EmptyTextTipColor = Color.DarkGray;
this.comboBoxGroupV.set_FormattingEnabled(true);
this.comboBoxGroupV.Location = new System.Drawing.Point(0x127, 0xbd);
this.comboBoxGroupV.Name = "comboBoxGroupV";
this.comboBoxGroupV.Size = new Size(180, 0x15);
this.comboBoxGroupV.TabIndex = 15;
this.label5.set_AutoSize(true);
this.label5.BorderColor = Color.Empty;
this.label5.ButtonBorderStyle = ButtonBorderStyle.None;
this.label5.Location = new System.Drawing.Point(0xa4, 0x4b);
this.label5.Name = "label5";
this.label5.Size = new Size(0xfd, 13);
this.label5.TabIndex = 6;
this.label5.Text = "格式:+国际码手机号码,如:+8613999999999";
this.label5.UseMnemonic = false;
this.xTextBoxMobileNoV.BackColor = Color.White;
this.xTextBoxMobileNoV.BorderStyle = BorderStyle.FixedSingle;
this.xTextBoxMobileNoV.EmptyTextTip = "";
this.xTextBoxMobileNoV.EmptyTextTipColor = Color.DarkGray;
this.xTextBoxMobileNoV.ImeMode = ImeMode.Hangul | ImeMode.On;
this.xTextBoxMobileNoV.Location = new System.Drawing.Point(0xa6, 0x2e);
this.xTextBoxMobileNoV.MaxLength = 20;
this.xTextBoxMobileNoV.Name = "xTextBoxMobileNoV";
this.xTextBoxMobileNoV.Size = new Size(0x95, 20);
this.xTextBoxMobileNoV.TabIndex = 5;
this.xTextBoxMobileNoV.TextChanged += new EventHandler(this.xTextBoxMobileNoV_TextChanged);
this.radioButtonMobileNoV.set_AutoSize(true);
this.radioButtonMobileNoV.Location = new System.Drawing.Point(0x13, 0x30);
this.radioButtonMobileNoV.Name = "radioButtonMobileNoV";
this.radioButtonMobileNoV.Size = new Size(0x55, 0x11);
this.radioButtonMobileNoV.TabIndex = 4;
this.radioButtonMobileNoV.TabStop = true;
this.radioButtonMobileNoV.Text = "对方手机号";
this.radioButtonMobileNoV.set_UseVisualStyleBackColor(true);
this.radioButtonMobileNoV.CheckedChanged += new EventHandler(this.radioButtonMobileNoV_CheckedChanged);
this.xTextBoxSIDV.BackColor = Color.White;
this.xTextBoxSIDV.BorderStyle = BorderStyle.FixedSingle;
this.xTextBoxSIDV.EmptyTextTip = "";
this.xTextBoxSIDV.EmptyTextTipColor = Color.DarkGray;
this.xTextBoxSIDV.ImeMode = ImeMode.Hangul | ImeMode.On;
this.xTextBoxSIDV.Location = new System.Drawing.Point(0xa6, 0x5f);
this.xTextBoxSIDV.MaxLength = 11;
this.xTextBoxSIDV.Name = "xTextBoxSIDV";
this.xTextBoxSIDV.Size = new Size(0x95, 20);
this.xTextBoxSIDV.TabIndex = 3;
this.xTextBoxSIDV.TextChanged += new EventHandler(this.xTextBoxSIDV_TextChanged);
this.radioButtonSIDV.set_AutoSize(true);
this.radioButtonSIDV.Location = new System.Drawing.Point(0x13, 0x5f);
this.radioButtonSIDV.Name = "radioButtonSIDV";
this.radioButtonSIDV.Size = new Size(140, 0x11);
this.radioButtonSIDV.TabIndex = 2;
this.radioButtonSIDV.TabStop = true;
this.radioButtonSIDV.Text = "Vodafone Messenger ID";
this.radioButtonSIDV.set_UseVisualStyleBackColor(true);
this.radioButtonSIDV.CheckedChanged += new EventHandler(this.radioButtonMID_CheckedChanged);
this.panelTop.Dock = DockStyle.Top;
this.panelTop.Location = new System.Drawing.Point(0, 0);
this.panelTop.Name = "panelTop";
this.panelTop.Size = new Size(370, 3);
this.panelTop.TabIndex = 20;
base.set_AutoScaleDimensions(new SizeF(6f, 13f));
base.set_AutoScaleMode(1);
base.BaseHeight = 340;
base.BaseWidth = 0x18c;
base.ClientSize = new Size(390, 0x13a);
base.Controls.Add(this.panel1);
base.Controls.Add(this.buttonCancel);
base.Controls.Add(this.buttonOK);
base.DisplayLocation = new System.Drawing.Point(0x12, 0x26);
base.FormBorderStyle = FormBorderStyle.FixedSingle;
base.KeyPreview = true;
base.MinimizeBox = false;
base.Name = "SendRequestForm";
base.set_Padding(new Padding(1, 0x16, 13, 4));
base.StartPosition = FormStartPosition.Manual;
base.Load += new EventHandler(this.SendRequestForm_Load);
this.panel1.ResumeLayout(false);
this.panelAddBuddy.ResumeLayout(false);
this.tabControlAddBuddy.ResumeLayout(false);
this.tabPageImps.ResumeLayout(false);
this.tabPageImps.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBoxPreview.ResumeLayout(false);
this.groupBoxPreview.PerformLayout();
this.tabPageVodafone.ResumeLayout(false);
this.tabPageVodafone.PerformLayout();
base.ResumeLayout(false);
}
private void InitializeWndlessControl()
{
this._controlCollection = new WndlessControlCollection(this.groupBox1);
this.pictureBoxPortrait = new WndlessPortrait();
this.pictureBoxPortrait.Cursor = Cursors.Hand;
this.pictureBoxPortrait.Location = new System.Drawing.Point(7, 0x13);
this.pictureBoxPortrait.Size = new Size(0x40, 0x40);
this.pictureBoxPortrait.PortraitSize = 0x30;
this.pictureBoxPortrait.ToolTipText = "";
this.pictureBoxPortrait.Click += new EventHandler(this.pictureBoxPortrait_Click);
this._controlCollection.Add(this.pictureBoxPortrait);
}
public void InitUIWithData()
{
this.initGroup();
this.initGroupVodafone();
if (!string.IsNullOrEmpty(this._initMobileNo))
{
this.radioButtonMobileNo.Checked = true;
this.textBoxMobileNo.Text = this._initMobileNo;
this.textBoxMobileNo.Focus();
}
else if (this._initSid.get_HasValue())
{
this.radioButtonSID.Checked = true;
this.textBoxSID.Text = this._initSid.ToString();
this.textBoxSID.Focus();
}
if (this._initDesc.Trim().Length == 0)
{
string source = (this._user.PersonalInfo.Name.Value.Trim().Length != 0) ? this._user.PersonalInfo.Name.Value.Trim() : this._user.PersonalInfo.Nickname.Value.Trim();
if (source.Length > 0)
{
this.textBoxMyName.Text = getStr(source, Imps.Client.Core.FixedClientSetting.Instance.MaxInviteRequestNameLength);
}
}
else if (this._initDesc.Trim().Length > this.textBoxMobileNo.MaxLength)
{
this.textBoxMyName.Text = this._initDesc.Trim().Substring(0, this.textBoxMyName.MaxLength);
}
else
{
this.textBoxMyName.Text = this._initDesc.Trim();
}
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
try
{
this._fr
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -