📄 loginfailedlog.cs
字号:
namespace Imps.Client.Pc.UserAccount
{
using Imps.Client.Pc.BizControls;
using Imps.Client.Pc.Controls;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
public class LoginFailedLog : XIMDialog
{
private readonly string _log;
private XButton btClose;
private XButton btCopy;
private IContainer components;
private Label label1;
private Panel panel1;
private XTextBox tbLog;
public LoginFailedLog(string log)
{
this._log = log;
this.InitializeComponent();
this.tbLog.AppendText(this._log);
}
private void btCopy_Click(object sender, EventArgs e)
{
Clipboard.Clear();
Clipboard.SetText(this._log);
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.components != null))
{
this.components.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.components = new Container();
ComponentResourceManager manager = new ComponentResourceManager(typeof(LoginFailedLog));
this.tbLog = new XTextBox();
this.btCopy = new XButton();
this.btClose = new XButton();
this.label1 = new Label();
this.panel1 = new Panel();
this.panel1.SuspendLayout();
base.SuspendLayout();
this.tbLog.BackColor = Color.FromArgb(240, 240, 240);
this.tbLog.BorderStyle = BorderStyle.None;
this.tbLog.EmptyTextTip = "";
this.tbLog.EmptyTextTipColor = Color.DarkGray;
this.tbLog.Location = new Point(6, 0x1f);
this.tbLog.Multiline = true;
this.tbLog.Name = "tbLog";
this.tbLog.ReadOnly = true;
this.tbLog.ScrollBars = ScrollBars.Both;
this.tbLog.Size = new Size(0x180, 0x11b);
this.tbLog.TabIndex = 1;
this.tbLog.WordWrap = false;
this.btCopy.AutoSizeToImage = false;
this.btCopy.BackColor = Color.Transparent;
this.btCopy.BackgroundImageDisable = null;
this.btCopy.BackgroundImageDown = null;
this.btCopy.BackgroundImageHover = null;
this.btCopy.ChangeSkin = true;
this.btCopy.Location = new Point(0xe1, 0x166);
this.btCopy.Name = "btCopy";
this.btCopy.Size = new Size(0x49, 0x17);
this.btCopy.TabIndex = 2;
this.btCopy.Text = "复制文本";
this.btCopy.set_UseVisualStyleBackColor(false);
this.btCopy.Click += new EventHandler(this.btCopy_Click);
this.btClose.AutoSizeToImage = false;
this.btClose.BackColor = Color.Transparent;
this.btClose.BackgroundImageDisable = null;
this.btClose.BackgroundImageDown = null;
this.btClose.BackgroundImageHover = null;
this.btClose.ChangeSkin = true;
this.btClose.DialogResult = DialogResult.Cancel;
this.btClose.Location = new Point(0x130, 0x166);
this.btClose.Name = "btClose";
this.btClose.Size = new Size(0x49, 0x17);
this.btClose.TabIndex = 3;
this.btClose.Text = "关闭";
this.btClose.set_UseVisualStyleBackColor(false);
this.label1.set_AutoSize(true);
this.label1.Font = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
this.label1.Location = new Point(3, 9);
this.label1.Name = "label1";
this.label1.Size = new Size(0x170, 0x10);
this.label1.TabIndex = 0;
this.label1.Text = "以下信息可以报告给飞信客服作为诊断登录失败的依据";
this.panel1.BackColor = Color.Transparent;
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.tbLog);
this.panel1.Location = new Point(6, 0x18);
this.panel1.Name = "panel1";
this.panel1.Size = new Size(0x189, 0x148);
this.panel1.TabIndex = 6;
base.set_AutoScaleDimensions(new SizeF(6f, 13f));
base.set_AutoScaleMode(1);
base.ClientSize = new Size(0x1a2, 0x1a6);
base.Controls.Add(this.panel1);
base.Controls.Add(this.btClose);
base.Controls.Add(this.btCopy);
base.Controls.SetChildIndex(this.panel1, 0);
base.DisplayLocation = new Point(0x12, 0x26);
base.DisplaySize = new Size(0x199, 0x1a6);
base.Icon = (Icon) manager.GetObject("$this.Icon");
base.MinimizeBox = false;
base.Name = "LoginFailedLog";
base.set_Padding(new Padding(6, 0x18, 0x13, 8));
base.Text = "详细信息";
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
base.ResumeLayout(false);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -