?? 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();
base.MinimizeBox = false;
this.tbLog.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
this.tbLog.BackColor = Color.White;
this.tbLog.BorderStyle = BorderStyle.None;
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, 0x11e);
this.tbLog.TabIndex = 1;
this.tbLog.WordWrap = false;
this.btCopy.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
this.btCopy.Location = new Point(0xee, 0x143);
this.btCopy.Name = "btCopy";
this.btCopy.Size = new Size(0x49, 0x17);
this.btCopy.TabIndex = 2;
this.btCopy.Text = "復制文本";
this.btCopy.UseVisualStyleBackColor = true;
this.btCopy.Click += new EventHandler(this.btCopy_Click);
this.btClose.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
this.btClose.DialogResult = DialogResult.Cancel;
this.btClose.Location = new Point(0x13d, 0x143);
this.btClose.Name = "btClose";
this.btClose.Size = new Size(0x49, 0x17);
this.btClose.TabIndex = 3;
this.btClose.Text = "關閉";
this.btClose.UseVisualStyleBackColor = true;
this.label1.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.btClose);
this.panel1.Controls.Add(this.tbLog);
this.panel1.Controls.Add(this.btCopy);
this.panel1.Dock = DockStyle.Fill;
this.panel1.Location = new Point(6, 0x18);
this.panel1.Name = "panel1";
this.panel1.Size = new Size(0x189, 0x15d);
this.panel1.TabIndex = 6;
base.AutoScaleDimensions = new SizeF(6f, 13f);
base.AutoScaleMode = AutoScaleMode.Font;
base.CancelButton = this.btClose;
base.ClientSize = new Size(0x1a2, 0x17d);
base.Controls.Add(this.panel1);
base.Icon = (Icon) manager.GetObject("$this.Icon");
base.Name = "LoginFailedLog";
base.Padding = new Padding(6, 0x18, 0x13, 8);
base.Text = "詳細信息";
base.Controls.SetChildIndex(this.panel1, 0);
base.Controls.SetChildIndex(base.menubar, 0);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
base.ResumeLayout(false);
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -