📄 loadingerror.cs
字号:
// LoadingError.cs
// Copyright (C) 2001 Mike Krueger
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
using System;
using System.Windows.Forms;
namespace SharpDevelop.Gui.ErrorDialogs {
public class LoadingError : System.Windows.Forms.Form
{
private System.ComponentModel.Container components;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label1;
public LoadingError(Exception e)
{
InitializeComponent();
textBox1.Text = e.ToString();
TopMost = true;
StartPosition = FormStartPosition.CenterScreen;
FormBorderStyle = FormBorderStyle.FixedDialog;
MaximizeBox = MinimizeBox = ControlBox = false;
Icon = null;
}
public override void Dispose()
{
base.Dispose();
components.Dispose();
}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.button1 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
button1.Location = new System.Drawing.Point(152, 184);
button1.DialogResult = System.Windows.Forms.DialogResult.OK;
button1.Size = new System.Drawing.Size(75, 23);
button1.TabIndex = 4;
button1.Text = "OK";
label1.Location = new System.Drawing.Point(8, 8);
label1.Text = "An error occured while loading Sharp Develop, the execution " +
"can\'t be continued, please reinstall";
label1.Size = new System.Drawing.Size(344, 32);
label1.TabIndex = 0;
textBox1.Location = new System.Drawing.Point(8, 64);
textBox1.ReadOnly = true;
textBox1.Multiline = true;
textBox1.TabIndex = 3;
textBox1.Size = new System.Drawing.Size(344, 112);
label3.Location = new System.Drawing.Point(8, 48);
label3.Text = "Description:";
label3.Size = new System.Drawing.Size(72, 16);
label3.TabIndex = 2;
this.Text = "Loading Error";
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(360, 213);
this.Controls.Add(button1);
this.Controls.Add(textBox1);
this.Controls.Add(label3);
this.Controls.Add(label1);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -