📄 basicprofiliecontrol.cs
字号:
this.btnSaveP.Name = "btnSaveP";
this.btnSaveP.Size = new Size(40, 0x15);
this.btnSaveP.TabIndex = 30;
this.btnSaveP.Text = "保存";
this.btnSaveP.set_UseVisualStyleBackColor(false);
this.btnSaveP.Click += new EventHandler(this.btnSaveP_Click);
this.btnUserP.AutoArrangementX = true;
this.btnUserP.AutoSizeToImage = false;
this.btnUserP.BackColor = Color.Transparent;
this.btnUserP.BackgroundImage = (Image) manager.GetObject("btnUserP.BackgroundImage");
this.btnUserP.BackgroundImageDisable = (Image) manager.GetObject("btnUserP.BackgroundImageDisable");
this.btnUserP.BackgroundImageDown = (Image) manager.GetObject("btnUserP.BackgroundImageDown");
this.btnUserP.BackgroundImageHover = (Image) manager.GetObject("btnUserP.BackgroundImageHover");
this.btnUserP.ChangeSkin = false;
this.btnUserP.Location = new System.Drawing.Point(0x124, 0x86);
this.btnUserP.Name = "btnUserP";
this.btnUserP.Size = new Size(0x2a, 0x15);
this.btnUserP.TabIndex = 0x23;
this.btnUserP.Text = "使用";
this.btnUserP.set_UseVisualStyleBackColor(false);
this.btnUserP.Click += new EventHandler(this.btnUserP_Click);
this.cboGender.BackColor = Color.White;
this.cboGender.DropDownStyle = ComboBoxStyle.DropDownList;
this.cboGender.EmptyTextTip = "";
this.cboGender.EmptyTextTipColor = Color.DarkGray;
this.cboGender.Enabled = false;
this.cboGender.set_FormattingEnabled(true);
this.cboGender.Items.AddRange(new object[] { "男", "女", "未公开" });
this.cboGender.Location = new System.Drawing.Point(0x48, 0x4d);
this.cboGender.Name = "cboGender";
this.cboGender.Size = new Size(0x97, 0x15);
this.cboGender.TabIndex = 15;
this.xLabel3.set_AutoSize(true);
this.xLabel3.BorderColor = Color.Empty;
this.xLabel3.ButtonBorderStyle = ButtonBorderStyle.None;
this.xLabel3.Location = new System.Drawing.Point(0x1c, 0xf7);
this.xLabel3.Name = "xLabel3";
this.xLabel3.Size = new Size(0x22, 13);
this.xLabel3.TabIndex = 0x27;
this.xLabel3.Text = "等级:";
this.xLabel3.UseMnemonic = false;
this.xLabel2.set_AutoSize(true);
this.xLabel2.BorderColor = Color.Empty;
this.xLabel2.ButtonBorderStyle = ButtonBorderStyle.None;
this.xLabel2.Location = new System.Drawing.Point(0x1c, 140);
this.xLabel2.Name = "xLabel2";
this.xLabel2.Size = new Size(0x22, 13);
this.xLabel2.TabIndex = 0x15;
this.xLabel2.Text = "城市:";
this.xLabel2.UseMnemonic = false;
this.xtbCity.BackColor = Color.FromArgb(240, 240, 240);
this.xtbCity.BorderStyle = BorderStyle.FixedSingle;
this.xtbCity.EmptyTextTip = "";
this.xtbCity.EmptyTextTipColor = Color.DarkGray;
this.xtbCity.Location = new System.Drawing.Point(0x48, 0x88);
this.xtbCity.MaxLength = 0x40;
this.xtbCity.Name = "xtbCity";
this.xtbCity.ReadOnly = true;
this.xtbCity.Size = new Size(0x97, 20);
this.xtbCity.TabIndex = 0x19;
this.xtbProvince.BackColor = Color.FromArgb(240, 240, 240);
this.xtbProvince.BorderStyle = BorderStyle.FixedSingle;
this.xtbProvince.EmptyTextTip = "";
this.xtbProvince.EmptyTextTipColor = Color.DarkGray;
this.xtbProvince.Location = new System.Drawing.Point(0x48, 0x6b);
this.xtbProvince.MaxLength = 0x40;
this.xtbProvince.Name = "xtbProvince";
this.xtbProvince.ReadOnly = true;
this.xtbProvince.Size = new Size(0x97, 20);
this.xtbProvince.TabIndex = 20;
this.xLabel5.set_AutoSize(true);
this.xLabel5.BorderColor = Color.Empty;
this.xLabel5.ButtonBorderStyle = ButtonBorderStyle.None;
this.xLabel5.Location = new System.Drawing.Point(0x1c, 0x112);
this.xLabel5.Name = "xLabel5";
this.xLabel5.Size = new Size(0x22, 13);
this.xLabel5.TabIndex = 0x27;
this.xLabel5.Text = "飞客:";
this.xLabel5.UseMnemonic = false;
this.LinkFeike.Location = new System.Drawing.Point(0x48, 0x112);
this.LinkFeike.Name = "LinkFeike";
this.LinkFeike.Size = new Size(0x3a, 13);
this.LinkFeike.TabIndex = 0x38;
this.LinkFeike.Text = "访问飞客";
this.LinkFeike.LinkClicked += new LinkLabelLinkClickedEventHandler(this.LinkFeike_LinkClicked);
this.gbSetting.Controls.Add(this.xLabelSysAlert);
this.gbSetting.Controls.Add(this.chkOnlineNotify);
this.gbSetting.Controls.Add(this.xTextBoxBackName);
this.gbSetting.Controls.Add(this.label3);
this.gbSetting.ForeColor = SystemColors.ControlText;
this.gbSetting.Location = new System.Drawing.Point(3, 0x133);
this.gbSetting.Name = "gbSetting";
this.gbSetting.Size = new Size(0x16c, 0x56);
this.gbSetting.TabIndex = 0x2a;
this.gbSetting.TabStop = false;
this.gbSetting.Text = "设置";
this.xLabelSysAlert.set_AutoSize(true);
this.xLabelSysAlert.BorderColor = Color.Empty;
this.xLabelSysAlert.ButtonBorderStyle = ButtonBorderStyle.None;
this.xLabelSysAlert.Cursor = Cursors.Hand;
this.xLabelSysAlert.Font = new Font("SimSun", 9f, FontStyle.Underline, GraphicsUnit.Point, 0);
this.xLabelSysAlert.ForeColor = Color.Green;
this.xLabelSysAlert.Location = new System.Drawing.Point(0x92, 0x38);
this.xLabelSysAlert.Name = "xLabelSysAlert";
this.xLabelSysAlert.Size = new Size(0xd1, 12);
this.xLabelSysAlert.TabIndex = 0x2c;
this.xLabelSysAlert.Text = "你已经在系统设置中允许好友上线通知";
this.xLabelSysAlert.UseMnemonic = false;
this.xLabelSysAlert.Visible = false;
base.set_AutoScaleDimensions(new SizeF(6f, 13f));
base.set_AutoScaleMode(1);
this.BackColor = Color.Transparent;
base.Controls.Add(this.groupBoxMain);
base.Controls.Add(this.gbSetting);
base.Name = "BasicProfilieControl";
base.Size = new Size(370, 0x199);
base.Load += new EventHandler(this.BasicProfilieControl_Load);
this.m_menu_wedit.ResumeLayout(false);
this.m_menu_redit.ResumeLayout(false);
this.groupBoxMain.ResumeLayout(false);
this.groupBoxMain.PerformLayout();
this.pbCrbt.EndInit();
this.gbSetting.ResumeLayout(false);
this.gbSetting.PerformLayout();
base.ResumeLayout(false);
}
private void InitializeWndlessControl()
{
this._controlCollection = new WndlessControlCollection(this.groupBoxMain);
this.xpbProtrait = new WndlessPortrait();
this.xpbProtrait.Location = new System.Drawing.Point(0xeb, 0x13);
this.xpbProtrait.Cursor = Cursors.Default;
this.xpbProtrait.ToolTipText = "";
this.xpbProtrait.Size = new Size(0x70, 0x70);
this.xpbProtrait.PortraitSize = 0x60;
this._scoreBox = new WndlessScorePictureBox();
this._scoreBox.Location = new System.Drawing.Point(0x48, 0xf5);
this._controlCollection.Add(this.xpbProtrait);
this._controlCollection.Add(this._scoreBox);
}
private void LinkFeike_LinkClicked(object sender, EventArgs e)
{
FunctionHelper.StartFunc(WebFunction.NavigateToFeike, string.Format("SID={0}", this._contact.Uri.Id));
}
private void on_menu_edit_copy(object sender, EventArgs e)
{
try
{
ChatEditCtrlManager txtNicknameMng = null;
if (this.txtNickname.Focused)
{
txtNicknameMng = this.m_txtNicknameMng;
}
else if (this.xTextBoxMoodPhrase.Focused)
{
txtNicknameMng = this.m_xTextBoxMoodPhraseMng;
}
if (txtNicknameMng != null)
{
txtNicknameMng.DoCopy();
}
}
catch (Exception exception)
{
ClientLogger.WriteException(exception);
}
}
private void on_menu_edit_opening(object sender, CancelEventArgs e)
{
try
{
ChatEditCtrlManager txtNicknameMng = null;
if (this.txtNickname.Focused)
{
txtNicknameMng = this.m_txtNicknameMng;
}
else if (this.xTextBoxMoodPhrase.Focused)
{
txtNicknameMng = this.m_xTextBoxMoodPhraseMng;
}
if (txtNicknameMng != null)
{
this.m_menu_edit_copy.set_Enabled(txtNicknameMng.CanCopy);
}
}
catch (Exception exception)
{
ClientLogger.WriteException(exception);
}
}
private void on_menu_edit_selectall(object sender, EventArgs e)
{
try
{
if (this.txtNickname.Focused)
{
this.txtNickname.SelectAll();
}
else if (this.xTextBoxMoodPhrase.Focused)
{
this.xTextBoxMoodPhrase.SelectAll();
}
}
catch (Exception exception)
{
ClientLogger.WriteException(exception);
}
}
private void on_menu_wedit_copy(object sender, EventArgs e)
{
try
{
this.m_xTextBoxBackNameMng.DoCopy();
}
catch (Exception exception)
{
ClientLogger.WriteException(exception);
}
}
private void on_menu_wedit_cut(object sender, EventArgs e)
{
try
{
this.m_xTextBoxBackNameMng.DoCut();
}
catch (Exception exception)
{
ClientLogger.WriteException(exception);
}
}
private void on_menu_wedit_delete(object sender, EventArgs e)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -