dummyoutputwindow.cs
来自「SharpDevelop2.0.0 c#开发免费工具」· CS 代码 · 共 144 行
CS
144 行
// *****************************************************************************
//
// Copyright 2003, Weifen Luo
// All rights reserved. The software and associated documentation
// supplied hereunder are the proprietary information of Weifen Luo
// and are supplied subject to licence terms.
//
// DockSample Application 1.0
// *****************************************************************************
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI;
namespace DockSample
{
/// <summary>
/// Summary description for DummyPropertyGrid.
/// </summary>
public class DummyOutputWindow : DockContent
{
private System.Windows.Forms.ComboBox comboBox;
private System.Windows.Forms.TextBox textBox1;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public DummyOutputWindow()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
comboBox.SelectedIndex = 0;
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(DummyOutputWindow));
this.comboBox = new System.Windows.Forms.ComboBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// comboBox
//
this.comboBox.Dock = System.Windows.Forms.DockStyle.Top;
this.comboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox.Items.AddRange(new object[] {
"Build"});
this.comboBox.Location = new System.Drawing.Point(0, 2);
this.comboBox.Name = "comboBox";
this.comboBox.Size = new System.Drawing.Size(255, 21);
this.comboBox.TabIndex = 1;
//
// textBox1
//
this.textBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.textBox1.Location = new System.Drawing.Point(0, 23);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.textBox1.Size = new System.Drawing.Size(255, 340);
this.textBox1.TabIndex = 2;
this.textBox1.Text = @"------ Build started: Project: WeifenLuo.WinFormsUI, Configuration: Debug .NET ------
Preparing resources...
Updating references...
Performing main compilation...
Build complete -- 0 errors, 0 warnings
Building satellite assemblies...
------ Build started: Project: DockSample, Configuration: Debug .NET ------
Preparing resources...
Updating references...
Performing main compilation...
Build complete -- 0 errors, 0 warnings
Building satellite assemblies...
---------------------- Done ----------------------
Build: 2 succeeded, 0 failed, 0 skipped
";
this.textBox1.WordWrap = false;
//
// DummyOutputWindow
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(255, 365);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.comboBox);
this.DockableAreas = ((WeifenLuo.WinFormsUI.DockAreas)(((((WeifenLuo.WinFormsUI.DockAreas.Float | WeifenLuo.WinFormsUI.DockAreas.DockLeft)
| WeifenLuo.WinFormsUI.DockAreas.DockRight)
| WeifenLuo.WinFormsUI.DockAreas.DockTop)
| WeifenLuo.WinFormsUI.DockAreas.DockBottom)));
this.DockPadding.Bottom = 2;
this.DockPadding.Top = 2;
this.HideOnClose = true;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "DummyOutputWindow";
this.ShowHint = WeifenLuo.WinFormsUI.DockState.DockBottomAutoHide;
this.Text = "Output";
this.ResumeLayout(false);
}
#endregion
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?