git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0wpf@3295 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
@ -1,118 +0,0 @@
@@ -1,118 +0,0 @@
|
||||
namespace DockSample |
||||
{ |
||||
partial class AboutDialog |
||||
{ |
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null; |
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing) |
||||
{ |
||||
if (disposing && (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() |
||||
{ |
||||
this.buttonOK = new System.Windows.Forms.Button(); |
||||
this.label1 = new System.Windows.Forms.Label(); |
||||
this.label2 = new System.Windows.Forms.Label(); |
||||
this.label3 = new System.Windows.Forms.Label(); |
||||
this.labelLibVersion = new System.Windows.Forms.Label(); |
||||
this.labelAppVersion = new System.Windows.Forms.Label(); |
||||
this.SuspendLayout(); |
||||
//
|
||||
// buttonOK
|
||||
//
|
||||
this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.Cancel; |
||||
this.buttonOK.Location = new System.Drawing.Point(240, 184); |
||||
this.buttonOK.Name = "buttonOK"; |
||||
this.buttonOK.Size = new System.Drawing.Size(75, 23); |
||||
this.buttonOK.TabIndex = 0; |
||||
this.buttonOK.Text = "OK"; |
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Location = new System.Drawing.Point(24, 59); |
||||
this.label1.Name = "label1"; |
||||
this.label1.Size = new System.Drawing.Size(109, 16); |
||||
this.label1.TabIndex = 1; |
||||
this.label1.Text = "DockSample Version:"; |
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.Location = new System.Drawing.Point(24, 119); |
||||
this.label2.Name = "label2"; |
||||
this.label2.Size = new System.Drawing.Size(272, 32); |
||||
this.label2.TabIndex = 2; |
||||
this.label2.Text = "Copyright 2007, Weifen Luo"; |
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true; |
||||
this.label3.Location = new System.Drawing.Point(24, 81); |
||||
this.label3.Name = "label3"; |
||||
this.label3.Size = new System.Drawing.Size(128, 13); |
||||
this.label3.TabIndex = 3; |
||||
this.label3.Text = "DockPanel Suite Version:"; |
||||
//
|
||||
// labelLibVersion
|
||||
//
|
||||
this.labelLibVersion.Location = new System.Drawing.Point(148, 81); |
||||
this.labelLibVersion.Name = "labelLibVersion"; |
||||
this.labelLibVersion.Size = new System.Drawing.Size(97, 13); |
||||
this.labelLibVersion.TabIndex = 4; |
||||
//
|
||||
// labelAppVersion
|
||||
//
|
||||
this.labelAppVersion.Location = new System.Drawing.Point(129, 59); |
||||
this.labelAppVersion.Name = "labelAppVersion"; |
||||
this.labelAppVersion.Size = new System.Drawing.Size(97, 13); |
||||
this.labelAppVersion.TabIndex = 5; |
||||
//
|
||||
// AboutDialog
|
||||
//
|
||||
this.AcceptButton = this.buttonOK; |
||||
this.CancelButton = this.buttonOK; |
||||
this.ClientSize = new System.Drawing.Size(322, 215); |
||||
this.Controls.Add(this.labelAppVersion); |
||||
this.Controls.Add(this.labelLibVersion); |
||||
this.Controls.Add(this.label3); |
||||
this.Controls.Add(this.label2); |
||||
this.Controls.Add(this.label1); |
||||
this.Controls.Add(this.buttonOK); |
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; |
||||
this.MaximizeBox = false; |
||||
this.MinimizeBox = false; |
||||
this.Name = "AboutDialog"; |
||||
this.ShowInTaskbar = false; |
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; |
||||
this.Text = "About"; |
||||
this.Load += new System.EventHandler(this.AboutDialog_Load); |
||||
this.ResumeLayout(false); |
||||
this.PerformLayout(); |
||||
|
||||
} |
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label label2; |
||||
private System.Windows.Forms.Label label1; |
||||
private System.Windows.Forms.Button buttonOK; |
||||
private System.Windows.Forms.Label label3; |
||||
private System.Windows.Forms.Label labelLibVersion; |
||||
private System.Windows.Forms.Label labelAppVersion; |
||||
} |
||||
} |
||||
@ -1,26 +0,0 @@
@@ -1,26 +0,0 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.ComponentModel; |
||||
using System.Data; |
||||
using System.Drawing; |
||||
using System.Text; |
||||
using System.Windows.Forms; |
||||
using System.Reflection; |
||||
using WeifenLuo.WinFormsUI.Docking; |
||||
|
||||
namespace DockSample |
||||
{ |
||||
public partial class AboutDialog : Form |
||||
{ |
||||
public AboutDialog() |
||||
{ |
||||
InitializeComponent(); |
||||
} |
||||
|
||||
private void AboutDialog_Load(object sender, EventArgs e) |
||||
{ |
||||
labelAppVersion.Text = typeof(MainForm).Assembly.GetName().Version.ToString(); |
||||
labelLibVersion.Text = typeof(DockPanel).Assembly.GetName().Version.ToString(); |
||||
} |
||||
} |
||||
} |
||||
@ -1,120 +0,0 @@
@@ -1,120 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<root> |
||||
<!-- |
||||
Microsoft ResX Schema |
||||
|
||||
Version 2.0 |
||||
|
||||
The primary goals of this format is to allow a simple XML format |
||||
that is mostly human readable. The generation and parsing of the |
||||
various data types are done through the TypeConverter classes |
||||
associated with the data types. |
||||
|
||||
Example: |
||||
|
||||
... ado.net/XML headers & schema ... |
||||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
||||
<resheader name="version">2.0</resheader> |
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
||||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
||||
</data> |
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
||||
<comment>This is a comment</comment> |
||||
</data> |
||||
|
||||
There are any number of "resheader" rows that contain simple |
||||
name/value pairs. |
||||
|
||||
Each data row contains a name, and value. The row also contains a |
||||
type or mimetype. Type corresponds to a .NET class that support |
||||
text/value conversion through the TypeConverter architecture. |
||||
Classes that don't support this are serialized and stored with the |
||||
mimetype set. |
||||
|
||||
The mimetype is used for serialized objects, and tells the |
||||
ResXResourceReader how to depersist the object. This is currently not |
||||
extensible. For a given mimetype the value must be set accordingly: |
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format |
||||
that the ResXResourceWriter will generate, however the reader can |
||||
read any of the formats listed below. |
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64 |
||||
value : The object must be serialized with |
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
||||
: and then encoded with base64 encoding. |
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64 |
||||
value : The object must be serialized with |
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
||||
: and then encoded with base64 encoding. |
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
||||
value : The object must be serialized into a byte array |
||||
: using a System.ComponentModel.TypeConverter |
||||
: and then encoded with base64 encoding. |
||||
--> |
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
||||
<xsd:element name="root" msdata:IsDataSet="true"> |
||||
<xsd:complexType> |
||||
<xsd:choice maxOccurs="unbounded"> |
||||
<xsd:element name="metadata"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
||||
<xsd:attribute name="type" type="xsd:string" /> |
||||
<xsd:attribute name="mimetype" type="xsd:string" /> |
||||
<xsd:attribute ref="xml:space" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="assembly"> |
||||
<xsd:complexType> |
||||
<xsd:attribute name="alias" type="xsd:string" /> |
||||
<xsd:attribute name="name" type="xsd:string" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="data"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
||||
<xsd:attribute ref="xml:space" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="resheader"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
</xsd:choice> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
</xsd:schema> |
||||
<resheader name="resmimetype"> |
||||
<value>text/microsoft-resx</value> |
||||
</resheader> |
||||
<resheader name="version"> |
||||
<value>2.0</value> |
||||
</resheader> |
||||
<resheader name="reader"> |
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
</resheader> |
||||
<resheader name="writer"> |
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
</resheader> |
||||
</root> |
||||
@ -1,113 +0,0 @@
@@ -1,113 +0,0 @@
|
||||
using System; |
||||
using System.Drawing; |
||||
using System.Windows.Forms; |
||||
using WeifenLuo.WinFormsUI.Docking; |
||||
|
||||
namespace DockSample.Customization |
||||
{ |
||||
internal class DockHelper |
||||
{ |
||||
public static bool IsDockStateAutoHide(DockState dockState) |
||||
{ |
||||
if (dockState == DockState.DockLeftAutoHide || |
||||
dockState == DockState.DockRightAutoHide || |
||||
dockState == DockState.DockTopAutoHide || |
||||
dockState == DockState.DockBottomAutoHide) |
||||
return true; |
||||
else |
||||
return false; |
||||
} |
||||
|
||||
public static bool IsDockStateDocked(DockState dockState) |
||||
{ |
||||
return (dockState == DockState.DockLeft || |
||||
dockState == DockState.DockRight || |
||||
dockState == DockState.DockTop || |
||||
dockState == DockState.DockBottom); |
||||
} |
||||
|
||||
public static bool IsDockBottom(DockState dockState) |
||||
{ |
||||
return (dockState == DockState.DockBottom || dockState == DockState.DockBottomAutoHide) ? true : false; |
||||
} |
||||
|
||||
public static bool IsDockLeft(DockState dockState) |
||||
{ |
||||
return (dockState == DockState.DockLeft || dockState == DockState.DockLeftAutoHide) ? true : false; |
||||
} |
||||
|
||||
public static bool IsDockRight(DockState dockState) |
||||
{ |
||||
return (dockState == DockState.DockRight || dockState == DockState.DockRightAutoHide) ? true : false; |
||||
} |
||||
|
||||
public static bool IsDockTop(DockState dockState) |
||||
{ |
||||
return (dockState == DockState.DockTop || dockState == DockState.DockTopAutoHide ) ? true : false; |
||||
} |
||||
|
||||
public static bool IsDockStateValid(DockState dockState, DockAreas dockableAreas) |
||||
{ |
||||
if (((dockableAreas & DockAreas.Float) == 0) && |
||||
(dockState == DockState.Float)) |
||||
return false; |
||||
else if (((dockableAreas & DockAreas.Document) == 0) && |
||||
(dockState == DockState.Document)) |
||||
return false; |
||||
else if (((dockableAreas & DockAreas.DockLeft) == 0) && |
||||
(dockState == DockState.DockLeft || dockState == DockState.DockLeftAutoHide)) |
||||
return false; |
||||
else if (((dockableAreas & DockAreas.DockRight) == 0) && |
||||
(dockState == DockState.DockRight || dockState == DockState.DockRightAutoHide)) |
||||
return false; |
||||
else if (((dockableAreas & DockAreas.DockTop) == 0) && |
||||
(dockState == DockState.DockTop || dockState == DockState.DockTopAutoHide)) |
||||
return false; |
||||
else if (((dockableAreas & DockAreas.DockBottom) == 0) && |
||||
(dockState == DockState.DockBottom || dockState == DockState.DockBottomAutoHide)) |
||||
return false; |
||||
else |
||||
return true; |
||||
} |
||||
|
||||
public static bool IsDockWindowState(DockState state) |
||||
{ |
||||
if (state == DockState.DockTop || state == DockState.DockBottom || state == DockState.DockLeft || |
||||
state == DockState.DockRight || state == DockState.Document) |
||||
return true; |
||||
else |
||||
return false; |
||||
} |
||||
|
||||
public static bool IsValidRestoreState(DockState state) |
||||
{ |
||||
if (state == DockState.DockLeft || state == DockState.DockRight || state == DockState.DockTop || |
||||
state == DockState.DockBottom || state == DockState.Document) |
||||
return true; |
||||
else |
||||
return false; |
||||
} |
||||
|
||||
public static DockState ToggleAutoHideState(DockState state) |
||||
{ |
||||
if (state == DockState.DockLeft) |
||||
return DockState.DockLeftAutoHide; |
||||
else if (state == DockState.DockRight) |
||||
return DockState.DockRightAutoHide; |
||||
else if (state == DockState.DockTop) |
||||
return DockState.DockTopAutoHide; |
||||
else if (state == DockState.DockBottom) |
||||
return DockState.DockBottomAutoHide; |
||||
else if (state == DockState.DockLeftAutoHide) |
||||
return DockState.DockLeft; |
||||
else if (state == DockState.DockRightAutoHide) |
||||
return DockState.DockRight; |
||||
else if (state == DockState.DockTopAutoHide) |
||||
return DockState.DockTop; |
||||
else if (state == DockState.DockBottomAutoHide) |
||||
return DockState.DockBottom; |
||||
else |
||||
return state; |
||||
} |
||||
} |
||||
} |
||||
@ -1,55 +0,0 @@
@@ -1,55 +0,0 @@
|
||||
using System; |
||||
using System.Drawing; |
||||
using WeifenLuo.WinFormsUI.Docking; |
||||
|
||||
namespace DockSample.Customization |
||||
{ |
||||
public class Extender |
||||
{ |
||||
public enum Schema |
||||
{ |
||||
VS2005, |
||||
VS2003 |
||||
} |
||||
|
||||
private class VS2003DockPaneStripFactory : DockPanelExtender.IDockPaneStripFactory |
||||
{ |
||||
public DockPaneStripBase CreateDockPaneStrip(DockPane pane) |
||||
{ |
||||
return new VS2003DockPaneStrip(pane); |
||||
} |
||||
} |
||||
|
||||
private class VS2003AutoHideStripFactory : DockPanelExtender.IAutoHideStripFactory |
||||
{ |
||||
public AutoHideStripBase CreateAutoHideStrip(DockPanel panel) |
||||
{ |
||||
return new VS2003AutoHideStrip(panel); |
||||
} |
||||
} |
||||
|
||||
private class VS2003DockPaneCaptionFactory : DockPanelExtender.IDockPaneCaptionFactory |
||||
{ |
||||
public DockPaneCaptionBase CreateDockPaneCaption(DockPane pane) |
||||
{ |
||||
return new VS2003DockPaneCaption(pane); |
||||
} |
||||
} |
||||
|
||||
public static void SetSchema(DockPanel dockPanel, Extender.Schema schema) |
||||
{ |
||||
if (schema == Extender.Schema.VS2005) |
||||
{ |
||||
dockPanel.Extender.AutoHideStripFactory = null; |
||||
dockPanel.Extender.DockPaneCaptionFactory = null; |
||||
dockPanel.Extender.DockPaneStripFactory = null; |
||||
} |
||||
else if (schema == Extender.Schema.VS2003) |
||||
{ |
||||
dockPanel.Extender.DockPaneCaptionFactory = new VS2003DockPaneCaptionFactory(); |
||||
dockPanel.Extender.AutoHideStripFactory = new VS2003AutoHideStripFactory(); |
||||
dockPanel.Extender.DockPaneStripFactory = new VS2003DockPaneStripFactory(); |
||||
} |
||||
} |
||||
} |
||||
} |
||||
@ -1,619 +0,0 @@
@@ -1,619 +0,0 @@
|
||||
using System; |
||||
using System.Drawing; |
||||
using System.Drawing.Imaging; |
||||
using System.Windows.Forms; |
||||
using System.ComponentModel; |
||||
|
||||
namespace DockSample.Customization |
||||
{ |
||||
internal class InertButton : Button |
||||
{ |
||||
private enum RepeatClickStatus |
||||
{ |
||||
Disabled, |
||||
Started, |
||||
Repeating, |
||||
Stopped |
||||
} |
||||
|
||||
private class RepeatClickEventArgs : EventArgs |
||||
{ |
||||
private static RepeatClickEventArgs _empty; |
||||
|
||||
static RepeatClickEventArgs() |
||||
{ |
||||
_empty = new RepeatClickEventArgs(); |
||||
} |
||||
|
||||
public new static RepeatClickEventArgs Empty |
||||
{ |
||||
get { return _empty; } |
||||
} |
||||
} |
||||
|
||||
private IContainer components = new Container(); |
||||
private int m_borderWidth = 1; |
||||
private bool m_mouseOver = false; |
||||
private bool m_mouseCapture = false; |
||||
private bool m_isPopup = false; |
||||
private Image m_imageEnabled = null; |
||||
private Image m_imageDisabled = null; |
||||
private int m_imageIndexEnabled = -1; |
||||
private int m_imageIndexDisabled = -1; |
||||
private bool m_monochrom = true; |
||||
private ToolTip m_toolTip = null; |
||||
private string m_toolTipText = ""; |
||||
private Color m_borderColor = Color.Empty; |
||||
|
||||
public InertButton() |
||||
{ |
||||
InternalConstruct(null, null); |
||||
} |
||||
|
||||
public InertButton(Image imageEnabled) |
||||
{ |
||||
InternalConstruct(imageEnabled, null); |
||||
} |
||||
|
||||
public InertButton(Image imageEnabled, Image imageDisabled) |
||||
{ |
||||
InternalConstruct(imageEnabled, imageDisabled); |
||||
} |
||||
|
||||
private void InternalConstruct(Image imageEnabled, Image imageDisabled) |
||||
{ |
||||
// Remember parameters
|
||||
ImageEnabled = imageEnabled; |
||||
ImageDisabled = imageDisabled; |
||||
|
||||
// Prevent drawing flicker by blitting from memory in WM_PAINT
|
||||
SetStyle(ControlStyles.ResizeRedraw, true); |
||||
SetStyle(ControlStyles.UserPaint, true); |
||||
SetStyle(ControlStyles.AllPaintingInWmPaint, true); |
||||
|
||||
// Prevent base class from trying to generate double click events and
|
||||
// so testing clicks against the double click time and rectangle. Getting
|
||||
// rid of this allows the user to press then release button very quickly.
|
||||
//SetStyle(ControlStyles.StandardDoubleClick, false);
|
||||
|
||||
// Should not be allowed to select this control
|
||||
SetStyle(ControlStyles.Selectable, false); |
||||
|
||||
m_timer = new Timer(); |
||||
m_timer.Enabled = false; |
||||
m_timer.Tick += new EventHandler(Timer_Tick); |
||||
} |
||||
|
||||
protected override void Dispose(bool disposing) |
||||
{ |
||||
if (disposing) |
||||
{ |
||||
if (components != null) |
||||
components.Dispose(); |
||||
} |
||||
base.Dispose(disposing); |
||||
} |
||||
|
||||
public Color BorderColor |
||||
{ |
||||
get { return m_borderColor; } |
||||
set |
||||
{ |
||||
if (m_borderColor != value) |
||||
{ |
||||
m_borderColor = value; |
||||
Invalidate(); |
||||
} |
||||
} |
||||
} |
||||
|
||||
private bool ShouldSerializeBorderColor() |
||||
{ |
||||
return (m_borderColor != Color.Empty); |
||||
} |
||||
|
||||
public int BorderWidth |
||||
{ |
||||
get { return m_borderWidth; } |
||||
|
||||
set |
||||
{ |
||||
if (value < 1) |
||||
value = 1; |
||||
if (m_borderWidth != value) |
||||
{ |
||||
m_borderWidth = value; |
||||
Invalidate(); |
||||
} |
||||
} |
||||
} |
||||
|
||||
public Image ImageEnabled |
||||
{ |
||||
get |
||||
{ |
||||
if (m_imageEnabled != null) |
||||
return m_imageEnabled; |
||||
|
||||
try |
||||
{ |
||||
if (ImageList == null || ImageIndexEnabled == -1) |
||||
return null; |
||||
else |
||||
return ImageList.Images[m_imageIndexEnabled]; |
||||
} |
||||
catch |
||||
{ |
||||
return null; |
||||
} |
||||
} |
||||
|
||||
set |
||||
{ |
||||
if (m_imageEnabled != value) |
||||
{ |
||||
m_imageEnabled = value; |
||||
Invalidate(); |
||||
} |
||||
} |
||||
} |
||||
|
||||
private bool ShouldSerializeImageEnabled() |
||||
{ |
||||
return (m_imageEnabled != null); |
||||
} |
||||
|
||||
public Image ImageDisabled |
||||
{ |
||||
get |
||||
{ |
||||
if (m_imageDisabled != null) |
||||
return m_imageDisabled; |
||||
|
||||
try |
||||
{ |
||||
if (ImageList == null || ImageIndexDisabled == -1) |
||||
return null; |
||||
else |
||||
return ImageList.Images[m_imageIndexDisabled]; |
||||
} |
||||
catch |
||||
{ |
||||
return null; |
||||
} |
||||
} |
||||
|
||||
set |
||||
{ |
||||
if (m_imageDisabled != value) |
||||
{ |
||||
m_imageDisabled = value; |
||||
Invalidate(); |
||||
} |
||||
} |
||||
} |
||||
|
||||
public int ImageIndexEnabled |
||||
{ |
||||
get { return m_imageIndexEnabled; } |
||||
set |
||||
{ |
||||
if (m_imageIndexEnabled != value) |
||||
{ |
||||
m_imageIndexEnabled = value; |
||||
Invalidate(); |
||||
} |
||||
} |
||||
} |
||||
|
||||
public int ImageIndexDisabled |
||||
{ |
||||
get { return m_imageIndexDisabled; } |
||||
set |
||||
{ |
||||
if (m_imageIndexDisabled != value) |
||||
{ |
||||
m_imageIndexDisabled = value; |
||||
Invalidate(); |
||||
} |
||||
} |
||||
} |
||||
|
||||
public bool IsPopup |
||||
{ |
||||
get { return m_isPopup; } |
||||
|
||||
set |
||||
{ |
||||
if (m_isPopup != value) |
||||
{ |
||||
m_isPopup = value; |
||||
Invalidate(); |
||||
} |
||||
} |
||||
} |
||||
|
||||
public bool Monochrome |
||||
{ |
||||
get { return m_monochrom; } |
||||
set |
||||
{ |
||||
if (value != m_monochrom) |
||||
{ |
||||
m_monochrom = value; |
||||
Invalidate(); |
||||
} |
||||
} |
||||
} |
||||
|
||||
public bool RepeatClick |
||||
{ |
||||
get { return (ClickStatus != RepeatClickStatus.Disabled); } |
||||
set { ClickStatus = RepeatClickStatus.Stopped; } |
||||
} |
||||
|
||||
private RepeatClickStatus m_clickStatus = RepeatClickStatus.Disabled; |
||||
private RepeatClickStatus ClickStatus |
||||
{ |
||||
get { return m_clickStatus; } |
||||
set |
||||
{ |
||||
if (m_clickStatus == value) |
||||
return; |
||||
|
||||
m_clickStatus = value; |
||||
if (ClickStatus == RepeatClickStatus.Started) |
||||
{ |
||||
Timer.Interval = RepeatClickDelay; |
||||
Timer.Enabled = true; |
||||
} |
||||
else if (ClickStatus == RepeatClickStatus.Repeating) |
||||
Timer.Interval = RepeatClickInterval; |
||||
else |
||||
Timer.Enabled = false; |
||||
} |
||||
} |
||||
|
||||
private int m_repeatClickDelay = 500; |
||||
public int RepeatClickDelay |
||||
{ |
||||
get { return m_repeatClickDelay; } |
||||
set { m_repeatClickDelay = value; } |
||||
} |
||||
|
||||
private int m_repeatClickInterval = 100; |
||||
public int RepeatClickInterval |
||||
{ |
||||
get { return m_repeatClickInterval; } |
||||
set { m_repeatClickInterval = value; } |
||||
} |
||||
|
||||
private Timer m_timer; |
||||
private Timer Timer |
||||
{ |
||||
get { return m_timer; } |
||||
} |
||||
|
||||
public string ToolTipText |
||||
{ |
||||
get { return m_toolTipText; } |
||||
set |
||||
{ |
||||
if (m_toolTipText != value) |
||||
{ |
||||
if (m_toolTip == null) |
||||
m_toolTip = new ToolTip(this.components); |
||||
m_toolTipText = value; |
||||
m_toolTip.SetToolTip(this, value); |
||||
} |
||||
} |
||||
} |
||||
|
||||
private void Timer_Tick(object sender, EventArgs e) |
||||
{ |
||||
if (m_mouseCapture && m_mouseOver) |
||||
OnClick(RepeatClickEventArgs.Empty); |
||||
if (ClickStatus == RepeatClickStatus.Started) |
||||
ClickStatus = RepeatClickStatus.Repeating; |
||||
} |
||||
|
||||
/// <exclude/>
|
||||
protected override void OnMouseDown(MouseEventArgs e) |
||||
{ |
||||
base.OnMouseDown(e); |
||||
|
||||
if (e.Button != MouseButtons.Left) |
||||
return; |
||||
|
||||
if (m_mouseCapture == false || m_mouseOver == false) |
||||
{ |
||||
m_mouseCapture = true; |
||||
m_mouseOver = true; |
||||
|
||||
//Redraw to show button state
|
||||
Invalidate(); |
||||
} |
||||
|
||||
if (RepeatClick) |
||||
{ |
||||
OnClick(RepeatClickEventArgs.Empty); |
||||
ClickStatus = RepeatClickStatus.Started; |
||||
} |
||||
} |
||||
|
||||
/// <exclude/>
|
||||
protected override void OnClick(EventArgs e) |
||||
{ |
||||
if (RepeatClick && !(e is RepeatClickEventArgs)) |
||||
return; |
||||
|
||||
base.OnClick (e); |
||||
} |
||||
|
||||
/// <exclude/>
|
||||
protected override void OnMouseUp(MouseEventArgs e) |
||||
{ |
||||
base.OnMouseUp(e); |
||||
|
||||
if (e.Button != MouseButtons.Left) |
||||
return; |
||||
|
||||
if (m_mouseOver == true || m_mouseCapture == true) |
||||
{ |
||||
m_mouseOver = false; |
||||
m_mouseCapture = false; |
||||
|
||||
// Redraw to show button state
|
||||
Invalidate(); |
||||
} |
||||
|
||||
if (RepeatClick) |
||||
ClickStatus = RepeatClickStatus.Stopped; |
||||
} |
||||
|
||||
/// <exclude/>
|
||||
protected override void OnMouseMove(MouseEventArgs e) |
||||
{ |
||||
base.OnMouseMove(e); |
||||
|
||||
// Is mouse point inside our client rectangle
|
||||
bool over = this.ClientRectangle.Contains(new Point(e.X, e.Y)); |
||||
|
||||
// If entering the button area or leaving the button area...
|
||||
if (over != m_mouseOver) |
||||
{ |
||||
// Update state
|
||||
m_mouseOver = over; |
||||
|
||||
// Redraw to show button state
|
||||
Invalidate(); |
||||
} |
||||
} |
||||
|
||||
/// <exclude/>
|
||||
protected override void OnMouseEnter(EventArgs e) |
||||
{ |
||||
// Update state to reflect mouse over the button area
|
||||
if (!m_mouseOver) |
||||
{ |
||||
m_mouseOver = true; |
||||
|
||||
// Redraw to show button state
|
||||
Invalidate(); |
||||
} |
||||
|
||||
base.OnMouseEnter(e); |
||||
} |
||||
|
||||
/// <exclude/>
|
||||
protected override void OnMouseLeave(EventArgs e) |
||||
{ |
||||
// Update state to reflect mouse not over the button area
|
||||
if (m_mouseOver) |
||||
{ |
||||
m_mouseOver = false; |
||||
|
||||
// Redraw to show button state
|
||||
Invalidate(); |
||||
} |
||||
|
||||
base.OnMouseLeave(e); |
||||
} |
||||
|
||||
/// <exclude/>
|
||||
protected override void OnPaint(PaintEventArgs e) |
||||
{ |
||||
base.OnPaint(e); |
||||
DrawBackground(e.Graphics); |
||||
DrawImage(e.Graphics); |
||||
DrawText(e.Graphics); |
||||
DrawBorder(e.Graphics); |
||||
} |
||||
|
||||
private void DrawBackground(Graphics g) |
||||
{ |
||||
using (SolidBrush brush = new SolidBrush(BackColor)) |
||||
{ |
||||
g.FillRectangle(brush, ClientRectangle); |
||||
} |
||||
} |
||||
|
||||
private void DrawImage(Graphics g) |
||||
{ |
||||
Image image = this.Enabled ? ImageEnabled : ((ImageDisabled != null) ? ImageDisabled : ImageEnabled); |
||||
ImageAttributes imageAttr = null; |
||||
|
||||
if (null == image) |
||||
return; |
||||
|
||||
if (m_monochrom) |
||||
{ |
||||
imageAttr = new ImageAttributes(); |
||||
|
||||
// transform the monochrom image
|
||||
// white -> BackColor
|
||||
// black -> ForeColor
|
||||
ColorMap[] colorMap = new ColorMap[2]; |
||||
colorMap[0] = new ColorMap(); |
||||
colorMap[0].OldColor = Color.White; |
||||
colorMap[0].NewColor = this.BackColor; |
||||
colorMap[1] = new ColorMap(); |
||||
colorMap[1].OldColor = Color.Black; |
||||
colorMap[1].NewColor = this.ForeColor; |
||||
imageAttr.SetRemapTable(colorMap); |
||||
} |
||||
|
||||
Rectangle rect = new Rectangle(0, 0, image.Width, image.Height); |
||||
|
||||
if ((!Enabled) && (null == ImageDisabled)) |
||||
{ |
||||
using (Bitmap bitmapMono = new Bitmap(image, ClientRectangle.Size)) |
||||
{ |
||||
if (imageAttr != null) |
||||
{ |
||||
using (Graphics gMono = Graphics.FromImage(bitmapMono)) |
||||
{ |
||||
gMono.DrawImage(image, new Point[3] { new Point(0, 0), new Point(image.Width - 1, 0), new Point(0, image.Height - 1) }, rect, GraphicsUnit.Pixel, imageAttr); |
||||
} |
||||
} |
||||
ControlPaint.DrawImageDisabled(g, bitmapMono, 0, 0, this.BackColor); |
||||
} |
||||
} |
||||
else |
||||
{ |
||||
// Three points provided are upper-left, upper-right and
|
||||
// lower-left of the destination parallelogram.
|
||||
Point[] pts = new Point[3]; |
||||
pts[0].X = (Enabled && m_mouseOver && m_mouseCapture) ? 1 : 0; |
||||
pts[0].Y = (Enabled && m_mouseOver && m_mouseCapture) ? 1 : 0; |
||||
pts[1].X = pts[0].X + ClientRectangle.Width; |
||||
pts[1].Y = pts[0].Y; |
||||
pts[2].X = pts[0].X; |
||||
pts[2].Y = pts[1].Y + ClientRectangle.Height; |
||||
|
||||
if (imageAttr == null) |
||||
g.DrawImage(image, pts, rect, GraphicsUnit.Pixel); |
||||
else |
||||
g.DrawImage(image, pts, rect, GraphicsUnit.Pixel, imageAttr); |
||||
} |
||||
} |
||||
|
||||
private void DrawText(Graphics g) |
||||
{ |
||||
if (Text == string.Empty) |
||||
return; |
||||
|
||||
Rectangle rect = ClientRectangle; |
||||
|
||||
rect.X += BorderWidth; |
||||
rect.Y += BorderWidth; |
||||
rect.Width -= 2 * BorderWidth; |
||||
rect.Height -= 2 * BorderWidth; |
||||
|
||||
StringFormat stringFormat = new StringFormat(); |
||||
|
||||
if (TextAlign == ContentAlignment.TopLeft) |
||||
{ |
||||
stringFormat.Alignment = StringAlignment.Near; |
||||
stringFormat.LineAlignment = StringAlignment.Near; |
||||
} |
||||
else if (TextAlign == ContentAlignment.TopCenter) |
||||
{ |
||||
stringFormat.Alignment = StringAlignment.Center; |
||||
stringFormat.LineAlignment = StringAlignment.Near; |
||||
} |
||||
else if (TextAlign == ContentAlignment.TopRight) |
||||
{ |
||||
stringFormat.Alignment = StringAlignment.Far; |
||||
stringFormat.LineAlignment = StringAlignment.Near; |
||||
} |
||||
else if (TextAlign == ContentAlignment.MiddleLeft) |
||||
{ |
||||
stringFormat.Alignment = StringAlignment.Near; |
||||
stringFormat.LineAlignment = StringAlignment.Center; |
||||
} |
||||
else if (TextAlign == ContentAlignment.MiddleCenter) |
||||
{ |
||||
stringFormat.Alignment = StringAlignment.Center; |
||||
stringFormat.LineAlignment = StringAlignment.Center; |
||||
} |
||||
else if (TextAlign == ContentAlignment.MiddleRight) |
||||
{ |
||||
stringFormat.Alignment = StringAlignment.Far; |
||||
stringFormat.LineAlignment = StringAlignment.Center; |
||||
} |
||||
else if (TextAlign == ContentAlignment.BottomLeft) |
||||
{ |
||||
stringFormat.Alignment = StringAlignment.Near; |
||||
stringFormat.LineAlignment = StringAlignment.Far; |
||||
} |
||||
else if (TextAlign == ContentAlignment.BottomCenter) |
||||
{ |
||||
stringFormat.Alignment = StringAlignment.Center; |
||||
stringFormat.LineAlignment = StringAlignment.Far; |
||||
} |
||||
else if (TextAlign == ContentAlignment.BottomRight) |
||||
{ |
||||
stringFormat.Alignment = StringAlignment.Far; |
||||
stringFormat.LineAlignment = StringAlignment.Far; |
||||
} |
||||
|
||||
using (Brush brush = new SolidBrush(ForeColor)) |
||||
{ |
||||
g.DrawString(Text, Font, brush, rect, stringFormat); |
||||
} |
||||
} |
||||
|
||||
private void DrawBorder(Graphics g) |
||||
{ |
||||
ButtonBorderStyle bs; |
||||
|
||||
// Decide on the type of border to draw around image
|
||||
if (!this.Enabled) |
||||
bs = IsPopup ? ButtonBorderStyle.Outset : ButtonBorderStyle.Solid; |
||||
else if (m_mouseOver && m_mouseCapture) |
||||
bs = ButtonBorderStyle.Inset; |
||||
else if (IsPopup || m_mouseOver) |
||||
bs = ButtonBorderStyle.Outset; |
||||
else |
||||
bs = ButtonBorderStyle.Solid; |
||||
|
||||
Color colorLeftTop; |
||||
Color colorRightBottom; |
||||
if (bs == ButtonBorderStyle.Solid) |
||||
{ |
||||
colorLeftTop = this.BackColor; |
||||
colorRightBottom = this.BackColor; |
||||
} |
||||
else if (bs == ButtonBorderStyle.Outset) |
||||
{ |
||||
colorLeftTop = m_borderColor.IsEmpty ? this.BackColor : m_borderColor; |
||||
colorRightBottom = this.BackColor; |
||||
} |
||||
else |
||||
{ |
||||
colorLeftTop = this.BackColor; |
||||
colorRightBottom = m_borderColor.IsEmpty ? this.BackColor : m_borderColor; |
||||
} |
||||
ControlPaint.DrawBorder(g, this.ClientRectangle, |
||||
colorLeftTop, m_borderWidth, bs, |
||||
colorLeftTop, m_borderWidth, bs, |
||||
colorRightBottom, m_borderWidth, bs, |
||||
colorRightBottom, m_borderWidth, bs); |
||||
} |
||||
|
||||
/// <exclude/>
|
||||
protected override void OnEnabledChanged(EventArgs e) |
||||
{ |
||||
base.OnEnabledChanged(e); |
||||
if (Enabled == false) |
||||
{ |
||||
m_mouseOver = false; |
||||
m_mouseCapture = false; |
||||
if (RepeatClick && ClickStatus != RepeatClickStatus.Stopped) |
||||
ClickStatus = RepeatClickStatus.Stopped; |
||||
} |
||||
Invalidate(); |
||||
} |
||||
} |
||||
} |
||||
@ -1,133 +0,0 @@
@@ -1,133 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.42
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DockSample.Customization { |
||||
using System; |
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] |
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
||||
internal class Resources { |
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan; |
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture; |
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] |
||||
internal Resources() { |
||||
} |
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
||||
internal static global::System.Resources.ResourceManager ResourceManager { |
||||
get { |
||||
if (object.ReferenceEquals(resourceMan, null)) { |
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("DockSample.Customization.Resources", typeof(Resources).Assembly); |
||||
resourceMan = temp; |
||||
} |
||||
return resourceMan; |
||||
} |
||||
} |
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
||||
internal static global::System.Globalization.CultureInfo Culture { |
||||
get { |
||||
return resourceCulture; |
||||
} |
||||
set { |
||||
resourceCulture = value; |
||||
} |
||||
} |
||||
|
||||
internal static System.Drawing.Bitmap DockPaneCaption_AutoHideNo { |
||||
get { |
||||
object obj = ResourceManager.GetObject("DockPaneCaption_AutoHideNo", resourceCulture); |
||||
return ((System.Drawing.Bitmap)(obj)); |
||||
} |
||||
} |
||||
|
||||
internal static System.Drawing.Bitmap DockPaneCaption_AutoHideYes { |
||||
get { |
||||
object obj = ResourceManager.GetObject("DockPaneCaption_AutoHideYes", resourceCulture); |
||||
return ((System.Drawing.Bitmap)(obj)); |
||||
} |
||||
} |
||||
|
||||
internal static System.Drawing.Bitmap DockPaneCaption_CloseDisabled { |
||||
get { |
||||
object obj = ResourceManager.GetObject("DockPaneCaption_CloseDisabled", resourceCulture); |
||||
return ((System.Drawing.Bitmap)(obj)); |
||||
} |
||||
} |
||||
|
||||
internal static System.Drawing.Bitmap DockPaneCaption_CloseEnabled { |
||||
get { |
||||
object obj = ResourceManager.GetObject("DockPaneCaption_CloseEnabled", resourceCulture); |
||||
return ((System.Drawing.Bitmap)(obj)); |
||||
} |
||||
} |
||||
|
||||
internal static System.Drawing.Bitmap DockPaneStrip_CloseDisabled { |
||||
get { |
||||
object obj = ResourceManager.GetObject("DockPaneStrip_CloseDisabled", resourceCulture); |
||||
return ((System.Drawing.Bitmap)(obj)); |
||||
} |
||||
} |
||||
|
||||
internal static System.Drawing.Bitmap DockPaneStrip_CloseEnabled { |
||||
get { |
||||
object obj = ResourceManager.GetObject("DockPaneStrip_CloseEnabled", resourceCulture); |
||||
return ((System.Drawing.Bitmap)(obj)); |
||||
} |
||||
} |
||||
|
||||
internal static System.Drawing.Bitmap DockPaneStrip_ScrollLeftDisabled { |
||||
get { |
||||
object obj = ResourceManager.GetObject("DockPaneStrip_ScrollLeftDisabled", resourceCulture); |
||||
return ((System.Drawing.Bitmap)(obj)); |
||||
} |
||||
} |
||||
|
||||
internal static System.Drawing.Bitmap DockPaneStrip_ScrollLeftEnabled { |
||||
get { |
||||
object obj = ResourceManager.GetObject("DockPaneStrip_ScrollLeftEnabled", resourceCulture); |
||||
return ((System.Drawing.Bitmap)(obj)); |
||||
} |
||||
} |
||||
|
||||
internal static System.Drawing.Bitmap DockPaneStrip_ScrollRightDisabled { |
||||
get { |
||||
object obj = ResourceManager.GetObject("DockPaneStrip_ScrollRightDisabled", resourceCulture); |
||||
return ((System.Drawing.Bitmap)(obj)); |
||||
} |
||||
} |
||||
|
||||
internal static System.Drawing.Bitmap DockPaneStrip_ScrollRightEnabled { |
||||
get { |
||||
object obj = ResourceManager.GetObject("DockPaneStrip_ScrollRightEnabled", resourceCulture); |
||||
return ((System.Drawing.Bitmap)(obj)); |
||||
} |
||||
} |
||||
} |
||||
} |
||||
@ -1,151 +0,0 @@
@@ -1,151 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<root> |
||||
<!-- |
||||
Microsoft ResX Schema |
||||
|
||||
Version 2.0 |
||||
|
||||
The primary goals of this format is to allow a simple XML format |
||||
that is mostly human readable. The generation and parsing of the |
||||
various data types are done through the TypeConverter classes |
||||
associated with the data types. |
||||
|
||||
Example: |
||||
|
||||
... ado.net/XML headers & schema ... |
||||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
||||
<resheader name="version">2.0</resheader> |
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
||||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
||||
</data> |
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
||||
<comment>This is a comment</comment> |
||||
</data> |
||||
|
||||
There are any number of "resheader" rows that contain simple |
||||
name/value pairs. |
||||
|
||||
Each data row contains a name, and value. The row also contains a |
||||
type or mimetype. Type corresponds to a .NET class that support |
||||
text/value conversion through the TypeConverter architecture. |
||||
Classes that don't support this are serialized and stored with the |
||||
mimetype set. |
||||
|
||||
The mimetype is used for serialized objects, and tells the |
||||
ResXResourceReader how to depersist the object. This is currently not |
||||
extensible. For a given mimetype the value must be set accordingly: |
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format |
||||
that the ResXResourceWriter will generate, however the reader can |
||||
read any of the formats listed below. |
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64 |
||||
value : The object must be serialized with |
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
||||
: and then encoded with base64 encoding. |
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64 |
||||
value : The object must be serialized with |
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
||||
: and then encoded with base64 encoding. |
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
||||
value : The object must be serialized into a byte array |
||||
: using a System.ComponentModel.TypeConverter |
||||
: and then encoded with base64 encoding. |
||||
--> |
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
||||
<xsd:element name="root" msdata:IsDataSet="true"> |
||||
<xsd:complexType> |
||||
<xsd:choice maxOccurs="unbounded"> |
||||
<xsd:element name="metadata"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
||||
<xsd:attribute name="type" type="xsd:string" /> |
||||
<xsd:attribute name="mimetype" type="xsd:string" /> |
||||
<xsd:attribute ref="xml:space" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="assembly"> |
||||
<xsd:complexType> |
||||
<xsd:attribute name="alias" type="xsd:string" /> |
||||
<xsd:attribute name="name" type="xsd:string" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="data"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
||||
<xsd:attribute ref="xml:space" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="resheader"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
</xsd:choice> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
</xsd:schema> |
||||
<resheader name="resmimetype"> |
||||
<value>text/microsoft-resx</value> |
||||
</resheader> |
||||
<resheader name="version"> |
||||
<value>2.0</value> |
||||
</resheader> |
||||
<resheader name="reader"> |
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
</resheader> |
||||
<resheader name="writer"> |
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
</resheader> |
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> |
||||
<data name="DockPaneCaption_AutoHideNo" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
||||
<value>Resources\DockPaneCaption_AutoHideNo.bmp;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
||||
</data> |
||||
<data name="DockPaneCaption_AutoHideYes" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
||||
<value>Resources\DockPaneCaption_AutoHideYes.bmp;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
||||
</data> |
||||
<data name="DockPaneCaption_CloseDisabled" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
||||
<value>Resources\DockPaneCaption_CloseDisabled.bmp;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
||||
</data> |
||||
<data name="DockPaneCaption_CloseEnabled" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
||||
<value>Resources\DockPaneCaption_CloseEnabled.bmp;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
||||
</data> |
||||
<data name="DockPaneStrip_CloseDisabled" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
||||
<value>Resources\DockPaneStrip_CloseDisabled.bmp;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
||||
</data> |
||||
<data name="DockPaneStrip_CloseEnabled" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
||||
<value>Resources\DockPaneStrip_CloseEnabled.bmp;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
||||
</data> |
||||
<data name="DockPaneStrip_ScrollLeftDisabled" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
||||
<value>Resources\DockPaneStrip_ScrollLeftDisabled.bmp;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
||||
</data> |
||||
<data name="DockPaneStrip_ScrollLeftEnabled" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
||||
<value>Resources\DockPaneStrip_ScrollLeftEnabled.bmp;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
||||
</data> |
||||
<data name="DockPaneStrip_ScrollRightDisabled" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
||||
<value>Resources\DockPaneStrip_ScrollRightDisabled.bmp;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
||||
</data> |
||||
<data name="DockPaneStrip_ScrollRightEnabled" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
||||
<value>Resources\DockPaneStrip_ScrollRightEnabled.bmp;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
||||
</data> |
||||
</root> |
||||
|
Before Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 90 B |
|
Before Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 114 B |
|
Before Width: | Height: | Size: 114 B |
|
Before Width: | Height: | Size: 114 B |
|
Before Width: | Height: | Size: 114 B |
|
Before Width: | Height: | Size: 114 B |
|
Before Width: | Height: | Size: 114 B |
|
Before Width: | Height: | Size: 114 B |
|
Before Width: | Height: | Size: 114 B |
|
Before Width: | Height: | Size: 114 B |
|
Before Width: | Height: | Size: 114 B |
|
Before Width: | Height: | Size: 23 KiB |
@ -1,108 +0,0 @@
@@ -1,108 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.42
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DockSample.Customization { |
||||
using System; |
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] |
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
||||
internal class Strings { |
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan; |
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture; |
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] |
||||
internal Strings() { |
||||
} |
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
||||
internal static global::System.Resources.ResourceManager ResourceManager { |
||||
get { |
||||
if (object.ReferenceEquals(resourceMan, null)) { |
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("DockSample.Customization.Strings", typeof(Strings).Assembly); |
||||
resourceMan = temp; |
||||
} |
||||
return resourceMan; |
||||
} |
||||
} |
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
||||
internal static global::System.Globalization.CultureInfo Culture { |
||||
get { |
||||
return resourceCulture; |
||||
} |
||||
set { |
||||
resourceCulture = value; |
||||
} |
||||
} |
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Auto Hide.
|
||||
/// </summary>
|
||||
internal static string DockPaneCaption_ToolTipAutoHide { |
||||
get { |
||||
return ResourceManager.GetString("DockPaneCaption_ToolTipAutoHide", resourceCulture); |
||||
} |
||||
} |
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Close.
|
||||
/// </summary>
|
||||
internal static string DockPaneCaption_ToolTipClose { |
||||
get { |
||||
return ResourceManager.GetString("DockPaneCaption_ToolTipClose", resourceCulture); |
||||
} |
||||
} |
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Close.
|
||||
/// </summary>
|
||||
internal static string DockPaneStrip_ToolTipClose { |
||||
get { |
||||
return ResourceManager.GetString("DockPaneStrip_ToolTipClose", resourceCulture); |
||||
} |
||||
} |
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Scroll Left.
|
||||
/// </summary>
|
||||
internal static string DockPaneStrip_ToolTipScrollLeft { |
||||
get { |
||||
return ResourceManager.GetString("DockPaneStrip_ToolTipScrollLeft", resourceCulture); |
||||
} |
||||
} |
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Scroll Right.
|
||||
/// </summary>
|
||||
internal static string DockPaneStrip_ToolTipScrollRight { |
||||
get { |
||||
return ResourceManager.GetString("DockPaneStrip_ToolTipScrollRight", resourceCulture); |
||||
} |
||||
} |
||||
} |
||||
} |
||||
@ -1,135 +0,0 @@
@@ -1,135 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<root> |
||||
<!-- |
||||
Microsoft ResX Schema |
||||
|
||||
Version 2.0 |
||||
|
||||
The primary goals of this format is to allow a simple XML format |
||||
that is mostly human readable. The generation and parsing of the |
||||
various data types are done through the TypeConverter classes |
||||
associated with the data types. |
||||
|
||||
Example: |
||||
|
||||
... ado.net/XML headers & schema ... |
||||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
||||
<resheader name="version">2.0</resheader> |
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
||||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
||||
</data> |
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
||||
<comment>This is a comment</comment> |
||||
</data> |
||||
|
||||
There are any number of "resheader" rows that contain simple |
||||
name/value pairs. |
||||
|
||||
Each data row contains a name, and value. The row also contains a |
||||
type or mimetype. Type corresponds to a .NET class that support |
||||
text/value conversion through the TypeConverter architecture. |
||||
Classes that don't support this are serialized and stored with the |
||||
mimetype set. |
||||
|
||||
The mimetype is used for serialized objects, and tells the |
||||
ResXResourceReader how to depersist the object. This is currently not |
||||
extensible. For a given mimetype the value must be set accordingly: |
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format |
||||
that the ResXResourceWriter will generate, however the reader can |
||||
read any of the formats listed below. |
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64 |
||||
value : The object must be serialized with |
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
||||
: and then encoded with base64 encoding. |
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64 |
||||
value : The object must be serialized with |
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
||||
: and then encoded with base64 encoding. |
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
||||
value : The object must be serialized into a byte array |
||||
: using a System.ComponentModel.TypeConverter |
||||
: and then encoded with base64 encoding. |
||||
--> |
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
||||
<xsd:element name="root" msdata:IsDataSet="true"> |
||||
<xsd:complexType> |
||||
<xsd:choice maxOccurs="unbounded"> |
||||
<xsd:element name="metadata"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
||||
<xsd:attribute name="type" type="xsd:string" /> |
||||
<xsd:attribute name="mimetype" type="xsd:string" /> |
||||
<xsd:attribute ref="xml:space" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="assembly"> |
||||
<xsd:complexType> |
||||
<xsd:attribute name="alias" type="xsd:string" /> |
||||
<xsd:attribute name="name" type="xsd:string" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="data"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
||||
<xsd:attribute ref="xml:space" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="resheader"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
</xsd:choice> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
</xsd:schema> |
||||
<resheader name="resmimetype"> |
||||
<value>text/microsoft-resx</value> |
||||
</resheader> |
||||
<resheader name="version"> |
||||
<value>2.0</value> |
||||
</resheader> |
||||
<resheader name="reader"> |
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
</resheader> |
||||
<resheader name="writer"> |
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
</resheader> |
||||
<data name="DockPaneCaption_ToolTipAutoHide" xml:space="preserve"> |
||||
<value>Auto Hide</value> |
||||
</data> |
||||
<data name="DockPaneCaption_ToolTipClose" xml:space="preserve"> |
||||
<value>Close</value> |
||||
</data> |
||||
<data name="DockPaneStrip_ToolTipClose" xml:space="preserve"> |
||||
<value>Close</value> |
||||
</data> |
||||
<data name="DockPaneStrip_ToolTipScrollLeft" xml:space="preserve"> |
||||
<value>Scroll Left</value> |
||||
</data> |
||||
<data name="DockPaneStrip_ToolTipScrollRight" xml:space="preserve"> |
||||
<value>Scroll Right</value> |
||||
</data> |
||||
</root> |
||||
@ -1,507 +0,0 @@
@@ -1,507 +0,0 @@
|
||||
using System; |
||||
using System.Drawing; |
||||
using System.Windows.Forms; |
||||
using System.Drawing.Drawing2D; |
||||
using System.ComponentModel; |
||||
using WeifenLuo.WinFormsUI.Docking; |
||||
|
||||
namespace DockSample.Customization |
||||
{ |
||||
/// <include file='CodeDoc/AutoHideStripVS2003.xml' path='//CodeDoc/Class[@name="AutoHideStripVS2003"]/ClassDef/*'/>
|
||||
internal class VS2003AutoHideStrip : AutoHideStripBase |
||||
{ |
||||
private class TabVS2003 : Tab |
||||
{ |
||||
internal TabVS2003(IDockContent content) |
||||
: base(content) |
||||
{ |
||||
} |
||||
|
||||
private int m_tabX = 0; |
||||
protected internal int TabX |
||||
{ |
||||
get { return m_tabX; } |
||||
set { m_tabX = value; } |
||||
} |
||||
|
||||
private int m_tabWidth = 0; |
||||
protected internal int TabWidth |
||||
{ |
||||
get { return m_tabWidth; } |
||||
set { m_tabWidth = value; } |
||||
} |
||||
|
||||
} |
||||
|
||||
private const int _ImageHeight = 16; |
||||
private const int _ImageWidth = 16; |
||||
private const int _ImageGapTop = 2; |
||||
private const int _ImageGapLeft = 4; |
||||
private const int _ImageGapRight = 4; |
||||
private const int _ImageGapBottom = 2; |
||||
private const int _TextGapLeft = 4; |
||||
private const int _TextGapRight = 10; |
||||
private const int _TabGapTop = 3; |
||||
private const int _TabGapLeft = 2; |
||||
private const int _TabGapBetween = 10; |
||||
|
||||
private static Matrix _matrixIdentity; |
||||
private static DockState[] _dockStates; |
||||
|
||||
#region Customizable Properties
|
||||
private static StringFormat _stringFormatTabHorizontal = null; |
||||
/// <include file='CodeDoc/AutoHideStripVS2003.xml' path='//CodeDoc/Class[@name="AutoHideStripVS2003"]/Property[@name="StringFormatTabHorizontal"]/*'/>
|
||||
protected virtual StringFormat StringFormatTabHorizontal |
||||
{ |
||||
get |
||||
{ |
||||
if (_stringFormatTabHorizontal == null) |
||||
{ |
||||
_stringFormatTabHorizontal = new StringFormat(); |
||||
_stringFormatTabHorizontal.Alignment = StringAlignment.Near; |
||||
_stringFormatTabHorizontal.LineAlignment = StringAlignment.Center; |
||||
_stringFormatTabHorizontal.FormatFlags = StringFormatFlags.NoWrap; |
||||
} |
||||
return _stringFormatTabHorizontal; |
||||
} |
||||
} |
||||
|
||||
private static StringFormat _stringFormatTabVertical; |
||||
/// <include file='CodeDoc/AutoHideStripVS2003.xml' path='//CodeDoc/Class[@name="AutoHideStripVS2003"]/Property[@name="StringFormatTabVertical"]/*'/>
|
||||
protected virtual StringFormat StringFormatTabVertical |
||||
{ |
||||
get |
||||
{ |
||||
if (_stringFormatTabVertical == null) |
||||
{ |
||||
_stringFormatTabVertical = new StringFormat(); |
||||
_stringFormatTabVertical.Alignment = StringAlignment.Near; |
||||
_stringFormatTabVertical.LineAlignment = StringAlignment.Center; |
||||
_stringFormatTabVertical.FormatFlags = StringFormatFlags.NoWrap | StringFormatFlags.DirectionVertical; |
||||
} |
||||
return _stringFormatTabVertical; |
||||
} |
||||
} |
||||
|
||||
/// <include file='CodeDoc/AutoHideStripVS2003.xml' path='//CodeDoc/Class[@name="AutoHideStripVS2003"]/Property[@name="ImageHeight"]/*'/>
|
||||
protected virtual int ImageHeight |
||||
{ |
||||
get { return _ImageHeight; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/AutoHideStripVS2003.xml' path='//CodeDoc/Class[@name="AutoHideStripVS2003"]/Property[@name="ImageWidth"]/*'/>
|
||||
protected virtual int ImageWidth |
||||
{ |
||||
get { return _ImageWidth; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/AutoHideStripVS2003.xml' path='//CodeDoc/Class[@name="AutoHideStripVS2003"]/Property[@name="ImageGapTop"]/*'/>
|
||||
protected virtual int ImageGapTop |
||||
{ |
||||
get { return _ImageGapTop; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/AutoHideStripVS2003.xml' path='//CodeDoc/Class[@name="AutoHideStripVS2003"]/Property[@name="ImageGapLeft"]/*'/>
|
||||
protected virtual int ImageGapLeft |
||||
{ |
||||
get { return _ImageGapLeft; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/AutoHideStripVS2003.xml' path='//CodeDoc/Class[@name="AutoHideStripVS2003"]/Property[@name="ImageGapRight"]/*'/>
|
||||
protected virtual int ImageGapRight |
||||
{ |
||||
get { return _ImageGapRight; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/AutoHideStripVS2003.xml' path='//CodeDoc/Class[@name="AutoHideStripVS2003"]/Property[@name="ImageGapBottom"]/*'/>
|
||||
protected virtual int ImageGapBottom |
||||
{ |
||||
get { return _ImageGapBottom; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/AutoHideStripVS2003.xml' path='//CodeDoc/Class[@name="AutoHideStripVS2003"]/Property[@name="TextGapLeft"]/*'/>
|
||||
protected virtual int TextGapLeft |
||||
{ |
||||
get { return _TextGapLeft; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/AutoHideStripVS2003.xml' path='//CodeDoc/Class[@name="AutoHideStripVS2003"]/Property[@name="TextGapRight"]/*'/>
|
||||
protected virtual int TextGapRight |
||||
{ |
||||
get { return _TextGapRight; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/AutoHideStripVS2003.xml' path='//CodeDoc/Class[@name="AutoHideStripVS2003"]/Property[@name="TabGapTop"]/*'/>
|
||||
protected virtual int TabGapTop |
||||
{ |
||||
get { return _TabGapTop; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/AutoHideStripVS2003.xml' path='//CodeDoc/Class[@name="AutoHideStripVS2003"]/Property[@name="TabGapLeft"]/*'/>
|
||||
protected virtual int TabGapLeft |
||||
{ |
||||
get { return _TabGapLeft; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/AutoHideStripVS2003.xml' path='//CodeDoc/Class[@name="AutoHideStripVS2003"]/Property[@name="TabGapBetween"]/*'/>
|
||||
protected virtual int TabGapBetween |
||||
{ |
||||
get { return _TabGapBetween; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/AutoHideStripVS2003.xml' path='//CodeDoc/Class[@name="AutoHideStripVS2003"]/Property[@name="BrushTabBackground"]/*'/>
|
||||
protected virtual Brush BrushTabBackground |
||||
{ |
||||
get { return SystemBrushes.Control; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/AutoHideStripVS2003.xml' path='//CodeDoc/Class[@name="AutoHideStripVS2003"]/Property[@name="PenTabBorder"]/*'/>
|
||||
protected virtual Pen PenTabBorder |
||||
{ |
||||
get { return SystemPens.GrayText; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/AutoHideStripVS2003.xml' path='//CodeDoc/Class[@name="AutoHideStripVS2003"]/Property[@name="BrushTabText"]/*'/>
|
||||
protected virtual Brush BrushTabText |
||||
{ |
||||
get { return SystemBrushes.FromSystemColor(SystemColors.ControlDarkDark); } |
||||
} |
||||
#endregion
|
||||
|
||||
private Matrix MatrixIdentity |
||||
{ |
||||
get { return _matrixIdentity; } |
||||
} |
||||
|
||||
private DockState[] DockStates |
||||
{ |
||||
get { return _dockStates; } |
||||
} |
||||
|
||||
static VS2003AutoHideStrip() |
||||
{ |
||||
_matrixIdentity = new Matrix(); |
||||
|
||||
_dockStates = new DockState[4]; |
||||
_dockStates[0] = DockState.DockLeftAutoHide; |
||||
_dockStates[1] = DockState.DockRightAutoHide; |
||||
_dockStates[2] = DockState.DockTopAutoHide; |
||||
_dockStates[3] = DockState.DockBottomAutoHide; |
||||
} |
||||
|
||||
public VS2003AutoHideStrip(DockPanel panel) : base(panel) |
||||
{ |
||||
SetStyle(ControlStyles.ResizeRedraw, true); |
||||
SetStyle(ControlStyles.UserPaint, true); |
||||
SetStyle(ControlStyles.AllPaintingInWmPaint, true); |
||||
BackColor = Color.WhiteSmoke; |
||||
} |
||||
|
||||
/// <exclude/>
|
||||
protected override void OnPaint(PaintEventArgs e) |
||||
{ |
||||
Graphics g = e.Graphics; |
||||
DrawTabStrip(g); |
||||
} |
||||
|
||||
/// <exclude/>
|
||||
protected override void OnLayout(LayoutEventArgs levent) |
||||
{ |
||||
CalculateTabs(); |
||||
base.OnLayout (levent); |
||||
} |
||||
|
||||
private void DrawTabStrip(Graphics g) |
||||
{ |
||||
DrawTabStrip(g, DockState.DockTopAutoHide); |
||||
DrawTabStrip(g, DockState.DockBottomAutoHide); |
||||
DrawTabStrip(g, DockState.DockLeftAutoHide); |
||||
DrawTabStrip(g, DockState.DockRightAutoHide); |
||||
} |
||||
|
||||
private void DrawTabStrip(Graphics g, DockState dockState) |
||||
{ |
||||
Rectangle rectTabStrip = GetLogicalTabStripRectangle(dockState); |
||||
|
||||
if (rectTabStrip.IsEmpty) |
||||
return; |
||||
|
||||
Matrix matrixIdentity = g.Transform; |
||||
if (dockState == DockState.DockLeftAutoHide || dockState == DockState.DockRightAutoHide) |
||||
{ |
||||
Matrix matrixRotated = new Matrix(); |
||||
matrixRotated.RotateAt(90, new PointF((float)rectTabStrip.X + (float)rectTabStrip.Height / 2, |
||||
(float)rectTabStrip.Y + (float)rectTabStrip.Height / 2)); |
||||
g.Transform = matrixRotated; |
||||
} |
||||
|
||||
foreach (Pane pane in GetPanes(dockState)) |
||||
{ |
||||
foreach (TabVS2003 tab in pane.AutoHideTabs) |
||||
DrawTab(g, tab); |
||||
} |
||||
g.Transform = matrixIdentity; |
||||
} |
||||
|
||||
private void CalculateTabs() |
||||
{ |
||||
CalculateTabs(DockState.DockTopAutoHide); |
||||
CalculateTabs(DockState.DockBottomAutoHide); |
||||
CalculateTabs(DockState.DockLeftAutoHide); |
||||
CalculateTabs(DockState.DockRightAutoHide); |
||||
} |
||||
|
||||
private void CalculateTabs(DockState dockState) |
||||
{ |
||||
Rectangle rectTabStrip = GetLogicalTabStripRectangle(dockState); |
||||
|
||||
int imageHeight = rectTabStrip.Height - ImageGapTop - ImageGapBottom; |
||||
int imageWidth = ImageWidth; |
||||
if (imageHeight > ImageHeight) |
||||
imageWidth = ImageWidth * (imageHeight/ImageHeight); |
||||
|
||||
using (Graphics g = CreateGraphics()) |
||||
{ |
||||
int x = TabGapLeft + rectTabStrip.X; |
||||
foreach (Pane pane in GetPanes(dockState)) |
||||
{ |
||||
int maxWidth = 0; |
||||
foreach (TabVS2003 tab in pane.AutoHideTabs) |
||||
{ |
||||
int width = imageWidth + ImageGapLeft + ImageGapRight + |
||||
(int)g.MeasureString(tab.Content.DockHandler.TabText, Font).Width + 1 + |
||||
TextGapLeft + TextGapRight; |
||||
if (width > maxWidth) |
||||
maxWidth = width; |
||||
} |
||||
|
||||
foreach (TabVS2003 tab in pane.AutoHideTabs) |
||||
{ |
||||
tab.TabX = x; |
||||
if (tab.Content == pane.DockPane.ActiveContent) |
||||
tab.TabWidth = maxWidth; |
||||
else |
||||
tab.TabWidth = imageWidth + ImageGapLeft + ImageGapRight; |
||||
x += tab.TabWidth; |
||||
} |
||||
x += TabGapBetween; |
||||
} |
||||
} |
||||
} |
||||
|
||||
private void DrawTab(Graphics g, TabVS2003 tab) |
||||
{ |
||||
Rectangle rectTab = GetTabRectangle(tab); |
||||
if (rectTab.IsEmpty) |
||||
return; |
||||
|
||||
DockState dockState = tab.Content.DockHandler.DockState; |
||||
IDockContent content = tab.Content; |
||||
|
||||
OnBeginDrawTab(tab); |
||||
|
||||
Brush brushTabBackGround = BrushTabBackground; |
||||
Pen penTabBorder = PenTabBorder; |
||||
Brush brushTabText = BrushTabText; |
||||
|
||||
g.FillRectangle(brushTabBackGround, rectTab); |
||||
|
||||
g.DrawLine(penTabBorder, rectTab.Left, rectTab.Top, rectTab.Left, rectTab.Bottom); |
||||
g.DrawLine(penTabBorder, rectTab.Right, rectTab.Top, rectTab.Right, rectTab.Bottom); |
||||
if (dockState == DockState.DockTopAutoHide || dockState == DockState.DockRightAutoHide) |
||||
g.DrawLine(penTabBorder, rectTab.Left, rectTab.Bottom, rectTab.Right, rectTab.Bottom); |
||||
else |
||||
g.DrawLine(penTabBorder, rectTab.Left, rectTab.Top, rectTab.Right, rectTab.Top); |
||||
|
||||
// Set no rotate for drawing icon and text
|
||||
Matrix matrixRotate = g.Transform; |
||||
g.Transform = MatrixIdentity; |
||||
|
||||
// Draw the icon
|
||||
Rectangle rectImage = rectTab; |
||||
rectImage.X += ImageGapLeft; |
||||
rectImage.Y += ImageGapTop; |
||||
int imageHeight = rectTab.Height - ImageGapTop - ImageGapBottom; |
||||
int imageWidth = ImageWidth; |
||||
if (imageHeight > ImageHeight) |
||||
imageWidth = ImageWidth * (imageHeight/ImageHeight); |
||||
rectImage.Height = imageHeight; |
||||
rectImage.Width = imageWidth; |
||||
rectImage = GetTransformedRectangle(dockState, rectImage); |
||||
g.DrawIcon(((Form)content).Icon, rectImage); |
||||
|
||||
// Draw the text
|
||||
if (content == content.DockHandler.Pane.ActiveContent) |
||||
{ |
||||
Rectangle rectText = rectTab; |
||||
rectText.X += ImageGapLeft + imageWidth + ImageGapRight + TextGapLeft; |
||||
rectText.Width -= ImageGapLeft + imageWidth + ImageGapRight + TextGapLeft; |
||||
rectText = GetTransformedRectangle(dockState, rectText); |
||||
if (dockState == DockState.DockLeftAutoHide || dockState == DockState.DockRightAutoHide) |
||||
g.DrawString(content.DockHandler.TabText, Font, brushTabText, rectText, StringFormatTabVertical); |
||||
else |
||||
g.DrawString(content.DockHandler.TabText, Font, brushTabText, rectText, StringFormatTabHorizontal); |
||||
} |
||||
|
||||
// Set rotate back
|
||||
g.Transform = matrixRotate; |
||||
|
||||
OnEndDrawTab(tab); |
||||
} |
||||
|
||||
private Rectangle GetLogicalTabStripRectangle(DockState dockState) |
||||
{ |
||||
return GetLogicalTabStripRectangle(dockState, false); |
||||
} |
||||
|
||||
private Rectangle GetLogicalTabStripRectangle(DockState dockState, bool transformed) |
||||
{ |
||||
if (!DockHelper.IsDockStateAutoHide(dockState)) |
||||
return Rectangle.Empty; |
||||
|
||||
int leftPanes = GetPanes(DockState.DockLeftAutoHide).Count; |
||||
int rightPanes = GetPanes(DockState.DockRightAutoHide).Count; |
||||
int topPanes = GetPanes(DockState.DockTopAutoHide).Count; |
||||
int bottomPanes = GetPanes(DockState.DockBottomAutoHide).Count; |
||||
|
||||
int x, y, width, height; |
||||
|
||||
height = MeasureHeight(); |
||||
if (dockState == DockState.DockLeftAutoHide && leftPanes > 0) |
||||
{ |
||||
x = 0; |
||||
y = (topPanes == 0) ? 0 : height; |
||||
width = Height - (topPanes == 0 ? 0 : height) - (bottomPanes == 0 ? 0 :height); |
||||
} |
||||
else if (dockState == DockState.DockRightAutoHide && rightPanes > 0) |
||||
{ |
||||
x = Width - height; |
||||
if (leftPanes != 0 && x < height) |
||||
x = height; |
||||
y = (topPanes == 0) ? 0 : height; |
||||
width = Height - (topPanes == 0 ? 0 : height) - (bottomPanes == 0 ? 0 :height); |
||||
} |
||||
else if (dockState == DockState.DockTopAutoHide && topPanes > 0) |
||||
{ |
||||
x = leftPanes == 0 ? 0 : height; |
||||
y = 0; |
||||
width = Width - (leftPanes == 0 ? 0 : height) - (rightPanes == 0 ? 0 : height); |
||||
} |
||||
else if (dockState == DockState.DockBottomAutoHide && bottomPanes > 0) |
||||
{ |
||||
x = leftPanes == 0 ? 0 : height; |
||||
y = Height - height; |
||||
if (topPanes != 0 && y < height) |
||||
y = height; |
||||
width = Width - (leftPanes == 0 ? 0 : height) - (rightPanes == 0 ? 0 : height); |
||||
} |
||||
else |
||||
return Rectangle.Empty; |
||||
|
||||
if (!transformed) |
||||
return new Rectangle(x, y, width, height); |
||||
else |
||||
return GetTransformedRectangle(dockState, new Rectangle(x, y, width, height)); |
||||
} |
||||
|
||||
private Rectangle GetTabRectangle(TabVS2003 tab) |
||||
{ |
||||
return GetTabRectangle(tab, false); |
||||
} |
||||
|
||||
private Rectangle GetTabRectangle(TabVS2003 tab, bool transformed) |
||||
{ |
||||
DockState dockState = tab.Content.DockHandler.DockState; |
||||
Rectangle rectTabStrip = GetLogicalTabStripRectangle(dockState); |
||||
|
||||
if (rectTabStrip.IsEmpty) |
||||
return Rectangle.Empty; |
||||
|
||||
int x = tab.TabX; |
||||
int y = rectTabStrip.Y + |
||||
(dockState == DockState.DockTopAutoHide || dockState == DockState.DockRightAutoHide ? |
||||
0 : TabGapTop); |
||||
int width = tab.TabWidth; |
||||
int height = rectTabStrip.Height - TabGapTop; |
||||
|
||||
if (!transformed) |
||||
return new Rectangle(x, y, width, height); |
||||
else |
||||
return GetTransformedRectangle(dockState, new Rectangle(x, y, width, height)); |
||||
} |
||||
|
||||
private Rectangle GetTransformedRectangle(DockState dockState, Rectangle rect) |
||||
{ |
||||
if (dockState != DockState.DockLeftAutoHide && dockState != DockState.DockRightAutoHide) |
||||
return rect; |
||||
|
||||
PointF[] pts = new PointF[1]; |
||||
// the center of the rectangle
|
||||
pts[0].X = (float)rect.X + (float)rect.Width / 2; |
||||
pts[0].Y = (float)rect.Y + (float)rect.Height / 2; |
||||
Rectangle rectTabStrip = GetLogicalTabStripRectangle(dockState); |
||||
Matrix matrix = new Matrix(); |
||||
matrix.RotateAt(90, new PointF((float)rectTabStrip.X + (float)rectTabStrip.Height / 2, |
||||
(float)rectTabStrip.Y + (float)rectTabStrip.Height / 2)); |
||||
matrix.TransformPoints(pts); |
||||
|
||||
return new Rectangle((int)(pts[0].X - (float)rect.Height / 2 + .5F), |
||||
(int)(pts[0].Y - (float)rect.Width / 2 + .5F), |
||||
rect.Height, rect.Width); |
||||
} |
||||
|
||||
/// <exclude />
|
||||
protected override IDockContent HitTest(Point ptMouse) |
||||
{ |
||||
foreach(DockState state in DockStates) |
||||
{ |
||||
Rectangle rectTabStrip = GetLogicalTabStripRectangle(state, true); |
||||
if (!rectTabStrip.Contains(ptMouse)) |
||||
continue; |
||||
|
||||
foreach(Pane pane in GetPanes(state)) |
||||
{ |
||||
foreach(TabVS2003 tab in pane.AutoHideTabs) |
||||
{ |
||||
Rectangle rectTab = GetTabRectangle(tab, true); |
||||
rectTab.Intersect(rectTabStrip); |
||||
if (rectTab.Contains(ptMouse)) |
||||
return tab.Content; |
||||
} |
||||
} |
||||
} |
||||
|
||||
return null; |
||||
} |
||||
|
||||
/// <exclude/>
|
||||
protected override int MeasureHeight() |
||||
{ |
||||
return Math.Max(ImageGapBottom + |
||||
ImageGapTop + ImageHeight, |
||||
Font.Height) + TabGapTop; |
||||
} |
||||
|
||||
/// <exclude/>
|
||||
protected override void OnRefreshChanges() |
||||
{ |
||||
CalculateTabs(); |
||||
Invalidate(); |
||||
} |
||||
|
||||
protected override AutoHideStripBase.Tab CreateTab(IDockContent content) |
||||
{ |
||||
return new TabVS2003(content); |
||||
} |
||||
|
||||
/// <include file='CodeDoc/AutoHideStripVS2003.xml' path='//CodeDoc/Class[@name="AutoHideStripVS2003"]/Method[@name="OnBeginDrawTab(AutoHideTab)"]/*'/>
|
||||
protected virtual void OnBeginDrawTab(Tab tab) |
||||
{ |
||||
} |
||||
|
||||
/// <include file='CodeDoc/AutoHideStripVS2003.xml' path='//CodeDoc/Class[@name="AutoHideStripVS2003"]/Method[@name="OnEndDrawTab(AutoHideTab)"]/*'/>
|
||||
protected virtual void OnEndDrawTab(Tab tab) |
||||
{ |
||||
} |
||||
} |
||||
} |
||||
@ -1,359 +0,0 @@
@@ -1,359 +0,0 @@
|
||||
using System; |
||||
using System.Drawing; |
||||
using System.Windows.Forms; |
||||
using System.ComponentModel; |
||||
using WeifenLuo.WinFormsUI.Docking; |
||||
|
||||
namespace DockSample.Customization |
||||
{ |
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/ClassDef/*'/>
|
||||
internal class VS2003DockPaneCaption : DockPaneCaptionBase |
||||
{ |
||||
#region consts
|
||||
private const int _TextGapTop = 2; |
||||
private const int _TextGapBottom = 0; |
||||
private const int _TextGapLeft = 3; |
||||
private const int _TextGapRight = 3; |
||||
private const int _ButtonGapTop = 2; |
||||
private const int _ButtonGapBottom = 1; |
||||
private const int _ButtonGapBetween = 1; |
||||
private const int _ButtonGapLeft = 1; |
||||
private const int _ButtonGapRight = 2; |
||||
#endregion
|
||||
|
||||
private InertButton m_buttonClose; |
||||
private InertButton m_buttonAutoHide; |
||||
|
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Construct[@name="(DockPane)"]/*'/>
|
||||
protected internal VS2003DockPaneCaption(DockPane pane) : base(pane) |
||||
{ |
||||
SuspendLayout(); |
||||
|
||||
Font = SystemInformation.MenuFont; |
||||
|
||||
m_buttonClose = new InertButton(ImageCloseEnabled, ImageCloseDisabled); |
||||
m_buttonAutoHide = new InertButton(); |
||||
|
||||
m_buttonClose.ToolTipText = ToolTipClose; |
||||
m_buttonClose.Anchor = AnchorStyles.Top | AnchorStyles.Right; |
||||
m_buttonClose.Click += new EventHandler(this.Close_Click); |
||||
|
||||
m_buttonAutoHide.ToolTipText = ToolTipAutoHide; |
||||
m_buttonAutoHide.Anchor = AnchorStyles.Top | AnchorStyles.Right; |
||||
m_buttonAutoHide.Click += new EventHandler(AutoHide_Click); |
||||
|
||||
Controls.AddRange(new Control[] { m_buttonClose, m_buttonAutoHide }); |
||||
|
||||
ResumeLayout(); |
||||
} |
||||
|
||||
#region Customizable Properties
|
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="TextGapTop"]/*'/>
|
||||
protected virtual int TextGapTop |
||||
{ |
||||
get { return _TextGapTop; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="TextGapBottom"]/*'/>
|
||||
protected virtual int TextGapBottom |
||||
{ |
||||
get { return _TextGapBottom; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="TextGapLeft"]/*'/>
|
||||
protected virtual int TextGapLeft |
||||
{ |
||||
get { return _TextGapLeft; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="TextGapRight"]/*'/>
|
||||
protected virtual int TextGapRight |
||||
{ |
||||
get { return _TextGapRight; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="ButtonGapTop"]/*'/>
|
||||
protected virtual int ButtonGapTop |
||||
{ |
||||
get { return _ButtonGapTop; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="ButtonGapBottom"]/*'/>
|
||||
protected virtual int ButtonGapBottom |
||||
{ |
||||
get { return _ButtonGapBottom; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="ButtonGapLeft"]/*'/>
|
||||
protected virtual int ButtonGapLeft |
||||
{ |
||||
get { return _ButtonGapLeft; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="ButtonGapRight"]/*'/>
|
||||
protected virtual int ButtonGapRight |
||||
{ |
||||
get { return _ButtonGapRight; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="ButtonGapBetween"]/*'/>
|
||||
protected virtual int ButtonGapBetween |
||||
{ |
||||
get { return _ButtonGapBetween; } |
||||
} |
||||
|
||||
private static Image _imageCloseEnabled = null; |
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="ImageCloseEnabled"]/*'/>
|
||||
protected virtual Image ImageCloseEnabled |
||||
{ |
||||
get |
||||
{ |
||||
if (_imageCloseEnabled == null) |
||||
_imageCloseEnabled = Resources.DockPaneCaption_CloseEnabled; |
||||
return _imageCloseEnabled; |
||||
} |
||||
} |
||||
|
||||
private static Image _imageCloseDisabled = null; |
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="ImageCloseDisabled"]/*'/>
|
||||
protected virtual Image ImageCloseDisabled |
||||
{ |
||||
get |
||||
{ |
||||
if (_imageCloseDisabled == null) |
||||
_imageCloseDisabled = Resources.DockPaneCaption_CloseDisabled; |
||||
return _imageCloseDisabled; |
||||
} |
||||
} |
||||
|
||||
private static Image _imageAutoHideYes = null; |
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="ImageAutoHideYes"]/*'/>
|
||||
protected virtual Image ImageAutoHideYes |
||||
{ |
||||
get |
||||
{ |
||||
if (_imageAutoHideYes == null) |
||||
_imageAutoHideYes = Resources.DockPaneCaption_AutoHideYes; |
||||
return _imageAutoHideYes; |
||||
} |
||||
} |
||||
|
||||
private static Image _imageAutoHideNo = null; |
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="ImageAutoHideNo"]/*'/>
|
||||
protected virtual Image ImageAutoHideNo |
||||
{ |
||||
get |
||||
{ |
||||
if (_imageAutoHideNo == null) |
||||
_imageAutoHideNo = Resources.DockPaneCaption_AutoHideNo; |
||||
return _imageAutoHideNo; |
||||
} |
||||
} |
||||
|
||||
private static string _toolTipClose = null; |
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="ToolTipClose"]/*'/>
|
||||
protected virtual string ToolTipClose |
||||
{ |
||||
get |
||||
{ |
||||
if (_toolTipClose == null) |
||||
_toolTipClose = Strings.DockPaneCaption_ToolTipClose; |
||||
return _toolTipClose; |
||||
} |
||||
} |
||||
|
||||
private static string _toolTipAutoHide = null; |
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="ToolTipAutoHide"]/*'/>
|
||||
protected virtual string ToolTipAutoHide |
||||
{ |
||||
get |
||||
{ |
||||
if (_toolTipAutoHide == null) |
||||
_toolTipAutoHide = Strings.DockPaneCaption_ToolTipAutoHide; |
||||
return _toolTipAutoHide; |
||||
} |
||||
} |
||||
|
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="ActiveBackColor"]/*'/>
|
||||
protected virtual Color ActiveBackColor |
||||
{ |
||||
get { return SystemColors.ActiveCaption; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="InactiveBackColor"]/*'/>
|
||||
protected virtual Color InactiveBackColor |
||||
{ |
||||
get { return SystemColors.Control; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="ActiveTextColor"]/*'/>
|
||||
protected virtual Color ActiveTextColor |
||||
{ |
||||
get { return SystemColors.ActiveCaptionText; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="InactiveTextColor"]/*'/>
|
||||
protected virtual Color InactiveTextColor |
||||
{ |
||||
get { return SystemColors.ControlText; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="InactiveBorderColor"]/*'/>
|
||||
protected virtual Color InactiveBorderColor |
||||
{ |
||||
get { return SystemColors.GrayText; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="ActiveButtonBorderColor"]/*'/>
|
||||
protected virtual Color ActiveButtonBorderColor |
||||
{ |
||||
get { return ActiveTextColor; } |
||||
} |
||||
|
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="InactiveButtonBorderColor"]/*'/>
|
||||
protected virtual Color InactiveButtonBorderColor |
||||
{ |
||||
get { return Color.Empty; } |
||||
} |
||||
|
||||
private static TextFormatFlags _textFormat = |
||||
TextFormatFlags.SingleLine | |
||||
TextFormatFlags.EndEllipsis | |
||||
TextFormatFlags.VerticalCenter; |
||||
/// <include file='CodeDoc/DockPaneCaptionVS2003.xml' path='//CodeDoc/Class[@name="DockPaneCaptionVS2003"]/Property[@name="TextStringFormat"]/*'/>
|
||||
protected virtual TextFormatFlags TextFormat |
||||
{ |
||||
get |
||||
{ |
||||
return _textFormat; |
||||
} |
||||
} |
||||
|
||||
#endregion
|
||||
|
||||
/// <exclude/>
|
||||
protected override int MeasureHeight() |
||||
{ |
||||
int height = Font.Height + TextGapTop + TextGapBottom; |
||||
|
||||
if (height < ImageCloseEnabled.Height + ButtonGapTop + ButtonGapBottom) |
||||
height = ImageCloseEnabled.Height + ButtonGapTop + ButtonGapBottom; |
||||
|
||||
return height; |
||||
} |
||||
|
||||
/// <exclude/>
|
||||
protected override void OnPaint(PaintEventArgs e) |
||||
{ |
||||
base.OnPaint (e); |
||||
DrawCaption(e.Graphics); |
||||
} |
||||
|
||||
private void DrawCaption(Graphics g) |
||||
{ |
||||
BackColor = DockPane.IsActivated ? ActiveBackColor : InactiveBackColor; |
||||
|
||||
Rectangle rectCaption = ClientRectangle; |
||||
|
||||
if (!DockPane.IsActivated) |
||||
{ |
||||
using (Pen pen = new Pen(InactiveBorderColor)) |
||||
{ |
||||
g.DrawLine(pen, rectCaption.X + 1, rectCaption.Y, rectCaption.X + rectCaption.Width - 2, rectCaption.Y); |
||||
g.DrawLine(pen, rectCaption.X + 1, rectCaption.Y + rectCaption.Height - 1, rectCaption.X + rectCaption.Width - 2, rectCaption.Y + rectCaption.Height - 1); |
||||
g.DrawLine(pen, rectCaption.X, rectCaption.Y + 1, rectCaption.X, rectCaption.Y + rectCaption.Height - 2); |
||||
g.DrawLine(pen, rectCaption.X + rectCaption.Width - 1, rectCaption.Y + 1, rectCaption.X + rectCaption.Width - 1, rectCaption.Y + rectCaption.Height - 2); |
||||
} |
||||
} |
||||
|
||||
m_buttonClose.ForeColor = m_buttonAutoHide.ForeColor = (DockPane.IsActivated ? ActiveTextColor : InactiveTextColor); |
||||
m_buttonClose.BorderColor = m_buttonAutoHide.BorderColor = (DockPane.IsActivated ? ActiveButtonBorderColor : InactiveButtonBorderColor); |
||||
|
||||
Rectangle rectCaptionText = rectCaption; |
||||
rectCaptionText.X += TextGapLeft; |
||||
if (ShouldShowCloseButton && ShouldShowAutoHideButton) |
||||
rectCaptionText.Width = rectCaption.Width - ButtonGapRight |
||||
- ButtonGapLeft - TextGapLeft - TextGapRight - |
||||
(m_buttonAutoHide.Width + ButtonGapBetween + m_buttonClose.Width); |
||||
else if (ShouldShowCloseButton || ShouldShowAutoHideButton) |
||||
rectCaptionText.Width = rectCaption.Width - ButtonGapRight |
||||
- ButtonGapLeft - TextGapLeft - TextGapRight - m_buttonClose.Width; |
||||
else |
||||
rectCaptionText.Width = rectCaption.Width - TextGapLeft - TextGapRight; |
||||
rectCaptionText.Y += TextGapTop; |
||||
rectCaptionText.Height -= TextGapTop + TextGapBottom; |
||||
TextRenderer.DrawText(g, DockPane.CaptionText, Font, rectCaptionText, DockPane.IsActivated ? ActiveTextColor : InactiveTextColor, TextFormat); |
||||
} |
||||
|
||||
/// <exclude/>
|
||||
protected override void OnLayout(LayoutEventArgs levent) |
||||
{ |
||||
SetButtonsPosition(); |
||||
base.OnLayout (levent); |
||||
} |
||||
|
||||
/// <exclude/>
|
||||
protected override void OnRefreshChanges() |
||||
{ |
||||
SetButtons(); |
||||
Invalidate(); |
||||
} |
||||
|
||||
private bool ShouldShowCloseButton |
||||
{ |
||||
get { return (DockPane.ActiveContent != null)? DockPane.ActiveContent.DockHandler.CloseButton : false; } |
||||
} |
||||
|
||||
private bool ShouldShowAutoHideButton |
||||
{ |
||||
get { return !DockPane.IsFloat; } |
||||
} |
||||
|
||||
private void SetButtons() |
||||
{ |
||||
m_buttonClose.Visible = ShouldShowCloseButton; |
||||
m_buttonAutoHide.Visible = ShouldShowAutoHideButton; |
||||
m_buttonAutoHide.ImageEnabled = DockPane.IsAutoHide ? ImageAutoHideYes : ImageAutoHideNo; |
||||
|
||||
SetButtonsPosition(); |
||||
} |
||||
|
||||
private void SetButtonsPosition() |
||||
{ |
||||
// set the size and location for close and auto-hide buttons
|
||||
Rectangle rectCaption = ClientRectangle; |
||||
int buttonWidth = ImageCloseEnabled.Width; |
||||
int buttonHeight = ImageCloseEnabled.Height; |
||||
int height = rectCaption.Height - ButtonGapTop - ButtonGapBottom; |
||||
if (buttonHeight < height) |
||||
{ |
||||
buttonWidth = buttonWidth * (height / buttonHeight); |
||||
buttonHeight = height; |
||||
} |
||||
m_buttonClose.SuspendLayout(); |
||||
m_buttonAutoHide.SuspendLayout(); |
||||
Size buttonSize = new Size(buttonWidth, buttonHeight); |
||||
m_buttonClose.Size = m_buttonAutoHide.Size = buttonSize; |
||||
int x = rectCaption.X + rectCaption.Width - 1 - ButtonGapRight - m_buttonClose.Width; |
||||
int y = rectCaption.Y + ButtonGapTop; |
||||
Point point = m_buttonClose.Location = new Point(x, y); |
||||
if (ShouldShowCloseButton) |
||||
point.Offset(-(m_buttonAutoHide.Width + ButtonGapBetween), 0); |
||||
m_buttonAutoHide.Location = point; |
||||
m_buttonClose.ResumeLayout(); |
||||
m_buttonAutoHide.ResumeLayout(); |
||||
} |
||||
|
||||
private void Close_Click(object sender, EventArgs e) |
||||
{ |
||||
DockPane.CloseActiveContent(); |
||||
} |
||||
|
||||
private void AutoHide_Click(object sender, EventArgs e) |
||||
{ |
||||
DockPane.DockState = DockHelper.ToggleAutoHideState(DockPane.DockState); |
||||
if (!DockPane.IsAutoHide) |
||||
DockPane.Activate(); |
||||
} |
||||
} |
||||
} |
||||
@ -1,324 +0,0 @@
@@ -1,324 +0,0 @@
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
<PropertyGroup> |
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
||||
<ProductVersion>8.0.50727</ProductVersion> |
||||
<SchemaVersion>2.0</SchemaVersion> |
||||
<ProjectGuid>{40793A27-478B-4357-B4C3-FC8943131F3D}</ProjectGuid> |
||||
<OutputType>WinExe</OutputType> |
||||
<AppDesignerFolder>Properties</AppDesignerFolder> |
||||
<RootNamespace>DockSample</RootNamespace> |
||||
<AssemblyName>DockSample</AssemblyName> |
||||
</PropertyGroup> |
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
||||
<DebugSymbols>true</DebugSymbols> |
||||
<DebugType>full</DebugType> |
||||
<Optimize>false</Optimize> |
||||
<OutputPath>bin\Debug\</OutputPath> |
||||
<DefineConstants>DEBUG;TRACE</DefineConstants> |
||||
<ErrorReport>prompt</ErrorReport> |
||||
<WarningLevel>4</WarningLevel> |
||||
</PropertyGroup> |
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
||||
<DebugType>pdbonly</DebugType> |
||||
<Optimize>true</Optimize> |
||||
<OutputPath>bin\Release\</OutputPath> |
||||
<DefineConstants>TRACE</DefineConstants> |
||||
<ErrorReport>prompt</ErrorReport> |
||||
<WarningLevel>4</WarningLevel> |
||||
</PropertyGroup> |
||||
<ItemGroup> |
||||
<Reference Include="System" /> |
||||
<Reference Include="System.Data" /> |
||||
<Reference Include="System.Drawing" /> |
||||
<Reference Include="System.Windows.Forms" /> |
||||
<Reference Include="System.Xml" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<Compile Include="AboutDialog.cs"> |
||||
<SubType>Form</SubType> |
||||
</Compile> |
||||
<Compile Include="AboutDialog.Designer.cs"> |
||||
<DependentUpon>AboutDialog.cs</DependentUpon> |
||||
</Compile> |
||||
<Compile Include="MainForm2.cs"> |
||||
<SubType>Form</SubType> |
||||
</Compile> |
||||
<Compile Include="MainForm2.Designer.cs"> |
||||
<DependentUpon>MainForm2.cs</DependentUpon> |
||||
</Compile> |
||||
<Compile Include="DummyDoc.cs"> |
||||
<SubType>Form</SubType> |
||||
</Compile> |
||||
<Compile Include="DummyDoc.Designer.cs"> |
||||
<DependentUpon>DummyDoc.cs</DependentUpon> |
||||
</Compile> |
||||
<Compile Include="DummyOutputWindow.cs"> |
||||
<SubType>Form</SubType> |
||||
</Compile> |
||||
<Compile Include="DummyOutputWindow.Designer.cs"> |
||||
<DependentUpon>DummyOutputWindow.cs</DependentUpon> |
||||
</Compile> |
||||
<Compile Include="DummyPropertyWindow.cs"> |
||||
<SubType>Form</SubType> |
||||
</Compile> |
||||
<Compile Include="DummyPropertyWindow.Designer.cs"> |
||||
<DependentUpon>DummyPropertyWindow.cs</DependentUpon> |
||||
</Compile> |
||||
<Compile Include="DummySolutionExplorer.cs"> |
||||
<SubType>Form</SubType> |
||||
</Compile> |
||||
<Compile Include="DummySolutionExplorer.Designer.cs"> |
||||
<DependentUpon>DummySolutionExplorer.cs</DependentUpon> |
||||
</Compile> |
||||
<Compile Include="DummyTaskList.cs"> |
||||
<SubType>Form</SubType> |
||||
</Compile> |
||||
<Compile Include="DummyTaskList.Designer.cs"> |
||||
<DependentUpon>DummyTaskList.cs</DependentUpon> |
||||
</Compile> |
||||
<Compile Include="DummyToolbox.cs"> |
||||
<SubType>Form</SubType> |
||||
</Compile> |
||||
<Compile Include="DummyToolbox.Designer.cs"> |
||||
<DependentUpon>DummyToolbox.cs</DependentUpon> |
||||
</Compile> |
||||
<Compile Include="Customization\DockHelper.cs" /> |
||||
<Compile Include="Customization\Extender.cs" /> |
||||
<Compile Include="Customization\InertButton.cs"> |
||||
<SubType>Component</SubType> |
||||
</Compile> |
||||
<Compile Include="Customization\VS2003AutoHideStrip.cs"> |
||||
<SubType>Component</SubType> |
||||
</Compile> |
||||
<Compile Include="Customization\VS2003DockPaneCaption.cs"> |
||||
<SubType>Component</SubType> |
||||
</Compile> |
||||
<Compile Include="Customization\VS2003DockPaneStrip.cs"> |
||||
<SubType>Component</SubType> |
||||
</Compile> |
||||
<Compile Include="MainForm.cs"> |
||||
<SubType>Form</SubType> |
||||
</Compile> |
||||
<Compile Include="MainForm.Designer.cs"> |
||||
<DependentUpon>MainForm.cs</DependentUpon> |
||||
</Compile> |
||||
<Compile Include="Program.cs" /> |
||||
<Compile Include="Properties\AssemblyInfo.cs" /> |
||||
<EmbeddedResource Include="AboutDialog.resx"> |
||||
<SubType>Designer</SubType> |
||||
<DependentUpon>AboutDialog.cs</DependentUpon> |
||||
</EmbeddedResource> |
||||
<EmbeddedResource Include="DummyDoc.resx"> |
||||
<SubType>Designer</SubType> |
||||
<DependentUpon>DummyDoc.cs</DependentUpon> |
||||
</EmbeddedResource> |
||||
<EmbeddedResource Include="DummyOutputWindow.resx"> |
||||
<SubType>Designer</SubType> |
||||
<DependentUpon>DummyOutputWindow.cs</DependentUpon> |
||||
</EmbeddedResource> |
||||
<EmbeddedResource Include="DummyPropertyWindow.resx"> |
||||
<SubType>Designer</SubType> |
||||
<DependentUpon>DummyPropertyWindow.cs</DependentUpon> |
||||
</EmbeddedResource> |
||||
<EmbeddedResource Include="DummySolutionExplorer.resx"> |
||||
<SubType>Designer</SubType> |
||||
<DependentUpon>DummySolutionExplorer.cs</DependentUpon> |
||||
</EmbeddedResource> |
||||
<EmbeddedResource Include="DummyTaskList.resx"> |
||||
<SubType>Designer</SubType> |
||||
<DependentUpon>DummyTaskList.cs</DependentUpon> |
||||
</EmbeddedResource> |
||||
<EmbeddedResource Include="DummyToolbox.resx"> |
||||
<SubType>Designer</SubType> |
||||
<DependentUpon>DummyToolbox.cs</DependentUpon> |
||||
</EmbeddedResource> |
||||
<EmbeddedResource Include="MainForm.resx"> |
||||
<SubType>Designer</SubType> |
||||
<DependentUpon>MainForm.cs</DependentUpon> |
||||
</EmbeddedResource> |
||||
<EmbeddedResource Include="Properties\Resources.resx"> |
||||
<Generator>ResXFileCodeGenerator</Generator> |
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput> |
||||
<SubType>Designer</SubType> |
||||
</EmbeddedResource> |
||||
<Compile Include="Properties\Resources.Designer.cs"> |
||||
<AutoGen>True</AutoGen> |
||||
<DependentUpon>Resources.resx</DependentUpon> |
||||
<DesignTime>True</DesignTime> |
||||
</Compile> |
||||
<None Include="Properties\Settings.settings"> |
||||
<Generator>SettingsSingleFileGenerator</Generator> |
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput> |
||||
</None> |
||||
<Compile Include="Properties\Settings.Designer.cs"> |
||||
<AutoGen>True</AutoGen> |
||||
<DependentUpon>Settings.settings</DependentUpon> |
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput> |
||||
</Compile> |
||||
<Compile Include="Customization\Resources.Designer.cs"> |
||||
<DependentUpon>Resources.resx</DependentUpon> |
||||
<AutoGen>True</AutoGen> |
||||
<DesignTime>True</DesignTime> |
||||
</Compile> |
||||
<Compile Include="Customization\Strings.Designer.cs"> |
||||
<DependentUpon>Strings.resx</DependentUpon> |
||||
<AutoGen>True</AutoGen> |
||||
<DesignTime>True</DesignTime> |
||||
</Compile> |
||||
<Compile Include="ToolWindow.cs"> |
||||
<SubType>Form</SubType> |
||||
</Compile> |
||||
<Compile Include="ToolWindow.Designer.cs"> |
||||
<DependentUpon>ToolWindow.cs</DependentUpon> |
||||
</Compile> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<ProjectReference Include="..\WinFormsUI\WinFormsUI.csproj"> |
||||
<Project>{C75532C4-765B-418E-B09B-46D36B2ABDB1}</Project> |
||||
<Name>WinFormsUI</Name> |
||||
</ProjectReference> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Images\ArrowDown.bmp" /> |
||||
<None Include="Images\ArrowUp.bmp" /> |
||||
<None Include="Images\Bitmap.ico" /> |
||||
<None Include="Images\BlankIcon.ico" /> |
||||
<None Include="Images\ClosedFolder.ICO" /> |
||||
<None Include="Images\CSFile.ico" /> |
||||
<None Include="Images\CSProject.ico" /> |
||||
<None Include="Images\File.ico" /> |
||||
<None Include="Images\Form.ico" /> |
||||
<None Include="Images\Mouse.bmp" /> |
||||
<None Include="Images\msenv22.ico" /> |
||||
<None Include="Images\New.ico" /> |
||||
<None Include="Images\Open.ico" /> |
||||
<None Include="Images\OpenFolder.ICO" /> |
||||
<None Include="Images\OutputWindow.ico" /> |
||||
<None Include="Images\PropertyWindow.ico" /> |
||||
<None Include="Images\Reference.ico" /> |
||||
<None Include="Images\References.ico" /> |
||||
<None Include="Images\SolutionExplorer.ico" /> |
||||
<None Include="Images\TaskListWindow.ico" /> |
||||
<None Include="Images\ToolboxWindow.ico" /> |
||||
<None Include="Images\XmlFile.ico" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<EmbeddedResource Include="MainForm2.resx"> |
||||
<DependentUpon>MainForm2.cs</DependentUpon> |
||||
<SubType>Designer</SubType> |
||||
</EmbeddedResource> |
||||
<EmbeddedResource Include="Customization\Resources.resx"> |
||||
<Generator>ResXFileCodeGenerator</Generator> |
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput> |
||||
<SubType>Designer</SubType> |
||||
</EmbeddedResource> |
||||
<EmbeddedResource Include="Resources\DockPanel.xml" /> |
||||
<EmbeddedResource Include="Customization\Strings.resx"> |
||||
<Generator>ResXFileCodeGenerator</Generator> |
||||
<LastGenOutput>Strings.Designer.cs</LastGenOutput> |
||||
<SubType>Designer</SubType> |
||||
</EmbeddedResource> |
||||
<EmbeddedResource Include="ToolWindow.resx"> |
||||
<SubType>Designer</SubType> |
||||
<DependentUpon>ToolWindow.cs</DependentUpon> |
||||
</EmbeddedResource> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockIndicator_PaneDiamond.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockPaneStrip_ScrollRightEnabled.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockIndicator_PaneDiamond_Bottom.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\Dockindicator_PaneDiamond_Fill.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockIndicator_PaneDiamond_Hotspot.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockIndicator_PaneDiamond_HotspotIndex.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockIndicator_PaneDiamond_Left.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockIndicator_PaneDiamond_Right.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockIndicator_PaneDiamond_Top.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockIndicator_PanelBottom.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockIndicator_PanelBottom_Active.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockIndicator_PanelFill.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockIndicator_PanelFill_Active.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockIndicator_PanelLeft.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockIndicator_PanelLeft_Active.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockIndicator_PanelRight.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockIndicator_PanelRight_Active.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockIndicator_PanelTop.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockIndicator_PanelTop_Active.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockPaneCaption_AutoHideNo.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockPaneCaption_AutoHideYes.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockPaneCaption_CloseDisabled.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockPaneCaption_CloseEnabled.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockPaneStrip_CloseDisabled.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockPaneStrip_CloseEnabled.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockPaneStrip_ScrollLeftDisabled.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockPaneStrip_ScrollLeftEnabled.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Customization\Resources\DockPaneStrip_ScrollRightDisabled.bmp" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="license.txt"> |
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> |
||||
</None> |
||||
</ItemGroup> |
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> |
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
||||
Other similar extension points exist, see Microsoft.Common.targets. |
||||
<Target Name="BeforeBuild"> |
||||
</Target> |
||||
<Target Name="AfterBuild"> |
||||
</Target> |
||||
--> |
||||
</Project> |
||||
@ -1,147 +0,0 @@
@@ -1,147 +0,0 @@
|
||||
namespace DockSample |
||||
{ |
||||
partial class DummyDoc |
||||
{ |
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null; |
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing) |
||||
{ |
||||
if (disposing && (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() |
||||
{ |
||||
this.components = new System.ComponentModel.Container(); |
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DummyDoc)); |
||||
this.mainMenu = new System.Windows.Forms.MenuStrip(); |
||||
this.menuItem1 = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.menuItem2 = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.menuItemCheckTest = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.contextMenuTabPage = new System.Windows.Forms.ContextMenuStrip(this.components); |
||||
this.menuItem3 = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.menuItem4 = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.menuItem5 = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.toolTip = new System.Windows.Forms.ToolTip(this.components); |
||||
this.richTextBox1 = new System.Windows.Forms.RichTextBox(); |
||||
this.mainMenu.SuspendLayout(); |
||||
this.contextMenuTabPage.SuspendLayout(); |
||||
this.SuspendLayout(); |
||||
//
|
||||
// mainMenu
|
||||
//
|
||||
this.mainMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
this.menuItem1}); |
||||
this.mainMenu.Location = new System.Drawing.Point(0, 4); |
||||
this.mainMenu.Name = "mainMenu"; |
||||
this.mainMenu.Size = new System.Drawing.Size(448, 24); |
||||
this.mainMenu.TabIndex = 1; |
||||
this.mainMenu.Visible = false; |
||||
//
|
||||
// menuItem1
|
||||
//
|
||||
this.menuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
this.menuItem2, |
||||
this.menuItemCheckTest}); |
||||
this.menuItem1.MergeAction = System.Windows.Forms.MergeAction.Insert; |
||||
this.menuItem1.MergeIndex = 1; |
||||
this.menuItem1.Name = "menuItem1"; |
||||
this.menuItem1.Size = new System.Drawing.Size(89, 20); |
||||
this.menuItem1.Text = "&MDI Document"; |
||||
//
|
||||
// menuItem2
|
||||
//
|
||||
this.menuItem2.Name = "menuItem2"; |
||||
this.menuItem2.Size = new System.Drawing.Size(127, 22); |
||||
this.menuItem2.Text = "Test"; |
||||
this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click); |
||||
//
|
||||
// menuItemCheckTest
|
||||
//
|
||||
this.menuItemCheckTest.Name = "menuItemCheckTest"; |
||||
this.menuItemCheckTest.Size = new System.Drawing.Size(127, 22); |
||||
this.menuItemCheckTest.Text = "Check Test"; |
||||
this.menuItemCheckTest.Click += new System.EventHandler(this.menuItemCheckTest_Click); |
||||
//
|
||||
// contextMenuTabPage
|
||||
//
|
||||
this.contextMenuTabPage.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
this.menuItem3, |
||||
this.menuItem4, |
||||
this.menuItem5}); |
||||
this.contextMenuTabPage.Name = "contextMenuTabPage"; |
||||
this.contextMenuTabPage.Size = new System.Drawing.Size(116, 70); |
||||
//
|
||||
// menuItem3
|
||||
//
|
||||
this.menuItem3.Name = "menuItem3"; |
||||
this.menuItem3.Size = new System.Drawing.Size(115, 22); |
||||
this.menuItem3.Text = "Option &1"; |
||||
//
|
||||
// menuItem4
|
||||
//
|
||||
this.menuItem4.Name = "menuItem4"; |
||||
this.menuItem4.Size = new System.Drawing.Size(115, 22); |
||||
this.menuItem4.Text = "Option &2"; |
||||
//
|
||||
// menuItem5
|
||||
//
|
||||
this.menuItem5.Name = "menuItem5"; |
||||
this.menuItem5.Size = new System.Drawing.Size(115, 22); |
||||
this.menuItem5.Text = "Option &3"; |
||||
//
|
||||
// richTextBox1
|
||||
//
|
||||
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill; |
||||
this.richTextBox1.Location = new System.Drawing.Point(0, 4); |
||||
this.richTextBox1.Name = "richTextBox1"; |
||||
this.richTextBox1.Size = new System.Drawing.Size(448, 389); |
||||
this.richTextBox1.TabIndex = 2; |
||||
this.richTextBox1.Text = ""; |
||||
//
|
||||
// DummyDoc
|
||||
//
|
||||
this.ClientSize = new System.Drawing.Size(448, 393); |
||||
this.Controls.Add(this.richTextBox1); |
||||
this.Controls.Add(this.mainMenu); |
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
||||
this.MainMenuStrip = this.mainMenu; |
||||
this.Name = "DummyDoc"; |
||||
this.Padding = new System.Windows.Forms.Padding(0, 4, 0, 0); |
||||
this.TabPageContextMenuStrip = this.contextMenuTabPage; |
||||
this.mainMenu.ResumeLayout(false); |
||||
this.mainMenu.PerformLayout(); |
||||
this.contextMenuTabPage.ResumeLayout(false); |
||||
this.ResumeLayout(false); |
||||
this.PerformLayout(); |
||||
|
||||
} |
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.MenuStrip mainMenu; |
||||
private System.Windows.Forms.ToolStripMenuItem menuItem1; |
||||
private System.Windows.Forms.ToolStripMenuItem menuItem2; |
||||
private System.Windows.Forms.ContextMenuStrip contextMenuTabPage; |
||||
private System.Windows.Forms.ToolStripMenuItem menuItem3; |
||||
private System.Windows.Forms.ToolStripMenuItem menuItem4; |
||||
private System.Windows.Forms.ToolStripMenuItem menuItem5; |
||||
private System.Windows.Forms.ToolStripMenuItem menuItemCheckTest; |
||||
private System.Windows.Forms.ToolTip toolTip; |
||||
private System.Windows.Forms.RichTextBox richTextBox1; |
||||
} |
||||
} |
||||
@ -1,83 +0,0 @@
@@ -1,83 +0,0 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.ComponentModel; |
||||
using System.Data; |
||||
using System.Drawing; |
||||
using System.Text; |
||||
using System.Windows.Forms; |
||||
using WeifenLuo.WinFormsUI.Docking; |
||||
using System.IO; |
||||
|
||||
namespace DockSample |
||||
{ |
||||
public partial class DummyDoc : DockContent |
||||
{ |
||||
public DummyDoc() |
||||
{ |
||||
InitializeComponent(); |
||||
} |
||||
|
||||
private string m_fileName = string.Empty; |
||||
public string FileName |
||||
{ |
||||
get { return m_fileName; } |
||||
set |
||||
{ |
||||
if (value != string.Empty) |
||||
{ |
||||
Stream s = new FileStream(value, FileMode.Open); |
||||
|
||||
FileInfo efInfo = new FileInfo(value); |
||||
|
||||
string fext = efInfo.Extension.ToUpper(); |
||||
|
||||
if (fext.Equals(".RTF")) |
||||
richTextBox1.LoadFile(s, RichTextBoxStreamType.RichText); |
||||
else |
||||
richTextBox1.LoadFile(s, RichTextBoxStreamType.PlainText); |
||||
s.Close(); |
||||
} |
||||
|
||||
m_fileName = value; |
||||
this.ToolTipText = value; |
||||
} |
||||
} |
||||
|
||||
// workaround of RichTextbox control's bug:
|
||||
// If load file before the control showed, all the text format will be lost
|
||||
// re-load the file after it get showed.
|
||||
private bool m_resetText = true; |
||||
protected override void OnPaint(PaintEventArgs e) |
||||
{ |
||||
base.OnPaint(e); |
||||
|
||||
if (m_resetText) |
||||
{ |
||||
m_resetText = false; |
||||
FileName = FileName; |
||||
} |
||||
} |
||||
|
||||
protected override string GetPersistString() |
||||
{ |
||||
return GetType().ToString() + "," + FileName + "," + Text; |
||||
} |
||||
|
||||
private void menuItem2_Click(object sender, System.EventArgs e) |
||||
{ |
||||
MessageBox.Show("This is to demostrate menu item has been successfully merged into the main form. Form Text=" + Text); |
||||
} |
||||
|
||||
private void menuItemCheckTest_Click(object sender, System.EventArgs e) |
||||
{ |
||||
menuItemCheckTest.Checked = !menuItemCheckTest.Checked; |
||||
} |
||||
|
||||
protected override void OnTextChanged(EventArgs e) |
||||
{ |
||||
base.OnTextChanged (e); |
||||
if (FileName == string.Empty) |
||||
this.richTextBox1.Text = Text; |
||||
} |
||||
} |
||||
} |
||||
@ -1,140 +0,0 @@
@@ -1,140 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<root> |
||||
<!-- |
||||
Microsoft ResX Schema |
||||
|
||||
Version 2.0 |
||||
|
||||
The primary goals of this format is to allow a simple XML format |
||||
that is mostly human readable. The generation and parsing of the |
||||
various data types are done through the TypeConverter classes |
||||
associated with the data types. |
||||
|
||||
Example: |
||||
|
||||
... ado.net/XML headers & schema ... |
||||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
||||
<resheader name="version">2.0</resheader> |
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
||||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
||||
</data> |
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
||||
<comment>This is a comment</comment> |
||||
</data> |
||||
|
||||
There are any number of "resheader" rows that contain simple |
||||
name/value pairs. |
||||
|
||||
Each data row contains a name, and value. The row also contains a |
||||
type or mimetype. Type corresponds to a .NET class that support |
||||
text/value conversion through the TypeConverter architecture. |
||||
Classes that don't support this are serialized and stored with the |
||||
mimetype set. |
||||
|
||||
The mimetype is used for serialized objects, and tells the |
||||
ResXResourceReader how to depersist the object. This is currently not |
||||
extensible. For a given mimetype the value must be set accordingly: |
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format |
||||
that the ResXResourceWriter will generate, however the reader can |
||||
read any of the formats listed below. |
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64 |
||||
value : The object must be serialized with |
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
||||
: and then encoded with base64 encoding. |
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64 |
||||
value : The object must be serialized with |
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
||||
: and then encoded with base64 encoding. |
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
||||
value : The object must be serialized into a byte array |
||||
: using a System.ComponentModel.TypeConverter |
||||
: and then encoded with base64 encoding. |
||||
--> |
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
||||
<xsd:element name="root" msdata:IsDataSet="true"> |
||||
<xsd:complexType> |
||||
<xsd:choice maxOccurs="unbounded"> |
||||
<xsd:element name="metadata"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
||||
<xsd:attribute name="type" type="xsd:string" /> |
||||
<xsd:attribute name="mimetype" type="xsd:string" /> |
||||
<xsd:attribute ref="xml:space" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="assembly"> |
||||
<xsd:complexType> |
||||
<xsd:attribute name="alias" type="xsd:string" /> |
||||
<xsd:attribute name="name" type="xsd:string" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="data"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
||||
<xsd:attribute ref="xml:space" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="resheader"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
</xsd:choice> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
</xsd:schema> |
||||
<resheader name="resmimetype"> |
||||
<value>text/microsoft-resx</value> |
||||
</resheader> |
||||
<resheader name="version"> |
||||
<value>2.0</value> |
||||
</resheader> |
||||
<resheader name="reader"> |
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
</resheader> |
||||
<resheader name="writer"> |
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
</resheader> |
||||
<metadata name="mainMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
||||
<value>261, 17</value> |
||||
</metadata> |
||||
<metadata name="contextMenuTabPage.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
||||
<value>102, 17</value> |
||||
</metadata> |
||||
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
||||
<value>17, 17</value> |
||||
</metadata> |
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
<value> |
||||
AAABAAEAEBAQAAAAAAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAgAAAAAAAAAAAAAAAEAAAABAA |
||||
AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP// |
||||
AAD///8AAAAAAAAAAAAAeIiIiIiIAAB///////gAAH+IiIiI+AAAf//////4AAB/iIiIiPgAAH////// |
||||
+AAAf4iIiIj4AAB///////gAAH+IiIiI+AAAf/////+IAAB/iIiI8AAAAH/////3BwAAf/////dwAAB3 |
||||
d3d3dwAAAAAAAAAAAADAAQAAwAEAAMABAADAAQAAwAEAAMABAADAAQAAwAEAAMABAADAAQAAwAEAAMAB |
||||
AADACwAAwAcAAMAPAAD//wAA |
||||
</value> |
||||
</data> |
||||
</root> |
||||
@ -1,83 +0,0 @@
@@ -1,83 +0,0 @@
|
||||
namespace DockSample |
||||
{ |
||||
partial class DummyOutputWindow |
||||
{ |
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null; |
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing) |
||||
{ |
||||
if (disposing && (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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(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 = resources.GetString("textBox1.Text"); |
||||
this.textBox1.WordWrap = false; |
||||
//
|
||||
// DummyOutputWindow
|
||||
//
|
||||
this.ClientSize = new System.Drawing.Size(255, 365); |
||||
this.Controls.Add(this.textBox1); |
||||
this.Controls.Add(this.comboBox); |
||||
this.DockAreas = ((WeifenLuo.WinFormsUI.Docking.DockAreas)(((((WeifenLuo.WinFormsUI.Docking.DockAreas.Float | WeifenLuo.WinFormsUI.Docking.DockAreas.DockLeft) |
||||
| WeifenLuo.WinFormsUI.Docking.DockAreas.DockRight) |
||||
| WeifenLuo.WinFormsUI.Docking.DockAreas.DockTop) |
||||
| WeifenLuo.WinFormsUI.Docking.DockAreas.DockBottom))); |
||||
this.HideOnClose = true; |
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
||||
this.Name = "DummyOutputWindow"; |
||||
this.Padding = new System.Windows.Forms.Padding(0, 2, 0, 2); |
||||
this.ShowHint = WeifenLuo.WinFormsUI.Docking.DockState.DockBottomAutoHide; |
||||
this.TabText = "Output"; |
||||
this.Text = "Output"; |
||||
this.ResumeLayout(false); |
||||
this.PerformLayout(); |
||||
|
||||
} |
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.ComboBox comboBox; |
||||
private System.Windows.Forms.TextBox textBox1; |
||||
} |
||||
} |
||||
@ -1,19 +0,0 @@
@@ -1,19 +0,0 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.ComponentModel; |
||||
using System.Data; |
||||
using System.Drawing; |
||||
using System.Text; |
||||
using System.Windows.Forms; |
||||
using WeifenLuo.WinFormsUI.Docking; |
||||
|
||||
namespace DockSample |
||||
{ |
||||
public partial class DummyOutputWindow : ToolWindow |
||||
{ |
||||
public DummyOutputWindow() |
||||
{ |
||||
InitializeComponent(); |
||||
} |
||||
} |
||||
} |
||||
@ -1,167 +0,0 @@
@@ -1,167 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<root> |
||||
<!-- |
||||
Microsoft ResX Schema |
||||
|
||||
Version 2.0 |
||||
|
||||
The primary goals of this format is to allow a simple XML format |
||||
that is mostly human readable. The generation and parsing of the |
||||
various data types are done through the TypeConverter classes |
||||
associated with the data types. |
||||
|
||||
Example: |
||||
|
||||
... ado.net/XML headers & schema ... |
||||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
||||
<resheader name="version">2.0</resheader> |
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
||||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
||||
</data> |
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
||||
<comment>This is a comment</comment> |
||||
</data> |
||||
|
||||
There are any number of "resheader" rows that contain simple |
||||
name/value pairs. |
||||
|
||||
Each data row contains a name, and value. The row also contains a |
||||
type or mimetype. Type corresponds to a .NET class that support |
||||
text/value conversion through the TypeConverter architecture. |
||||
Classes that don't support this are serialized and stored with the |
||||
mimetype set. |
||||
|
||||
The mimetype is used for serialized objects, and tells the |
||||
ResXResourceReader how to depersist the object. This is currently not |
||||
extensible. For a given mimetype the value must be set accordingly: |
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format |
||||
that the ResXResourceWriter will generate, however the reader can |
||||
read any of the formats listed below. |
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64 |
||||
value : The object must be serialized with |
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
||||
: and then encoded with base64 encoding. |
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64 |
||||
value : The object must be serialized with |
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
||||
: and then encoded with base64 encoding. |
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
||||
value : The object must be serialized into a byte array |
||||
: using a System.ComponentModel.TypeConverter |
||||
: and then encoded with base64 encoding. |
||||
--> |
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
||||
<xsd:element name="root" msdata:IsDataSet="true"> |
||||
<xsd:complexType> |
||||
<xsd:choice maxOccurs="unbounded"> |
||||
<xsd:element name="metadata"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
||||
<xsd:attribute name="type" type="xsd:string" /> |
||||
<xsd:attribute name="mimetype" type="xsd:string" /> |
||||
<xsd:attribute ref="xml:space" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="assembly"> |
||||
<xsd:complexType> |
||||
<xsd:attribute name="alias" type="xsd:string" /> |
||||
<xsd:attribute name="name" type="xsd:string" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="data"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
||||
<xsd:attribute ref="xml:space" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="resheader"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
</xsd:choice> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
</xsd:schema> |
||||
<resheader name="resmimetype"> |
||||
<value>text/microsoft-resx</value> |
||||
</resheader> |
||||
<resheader name="version"> |
||||
<value>2.0</value> |
||||
</resheader> |
||||
<resheader name="reader"> |
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
</resheader> |
||||
<resheader name="writer"> |
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
</resheader> |
||||
<data name="textBox1.Text" xml:space="preserve"> |
||||
<value>------ Build started: Project: WeifenLuo.WinFormsUI.Docking, 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 |
||||
|
||||
</value> |
||||
</data> |
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
<value> |
||||
AAABAAEAICAQAAAAAADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAAAIAAAAAAAAAAAAAEAAAABAA |
||||
AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP// |
||||
AAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wAAAAAA |
||||
AP////////////8AAAAAAAD/d3d3d3d3d///AAAAAAAA/3d3d3d3d3f//wAAAAAAAP////////////8A |
||||
AAAAAAD/////////////AAAAAAAA/3d3d3d3d3d3/wAAAAAAAP93d3d3d3d3d/8AAAAAAAD///////// |
||||
////AAAAAAAA/////////////wAAAAAAAP8AAAAAAAAA//8AAAAAAAD/AAAAAAAAAP//AAAAAAAA//// |
||||
/////////wAAAAAAAP////////////8AAAAAAAD/d3d3d3d3d3f/AAAAAAAA/3d3d3d3d3d3/wAAAAAA |
||||
AP////////////8AAAAAAAD/////////////AAAAAABEREREREREREREREQAAAAARERERERERERERERE |
||||
AAAAAERERERERERERERERAAAAABEREREREREREREREQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////8AAAD/AA |
||||
AA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AA |
||||
AA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP/////////////////////w== |
||||
</value> |
||||
</data> |
||||
</root> |
||||
@ -1,95 +0,0 @@
@@ -1,95 +0,0 @@
|
||||
namespace DockSample |
||||
{ |
||||
partial class DummyPropertyWindow |
||||
{ |
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null; |
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing) |
||||
{ |
||||
if (disposing && (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() |
||||
{ |
||||
this.components = new System.ComponentModel.Container(); |
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DummyPropertyWindow)); |
||||
this.propertyGrid = new System.Windows.Forms.PropertyGrid(); |
||||
this.comboBox = new System.Windows.Forms.ComboBox(); |
||||
this.mainMenu1 = new System.Windows.Forms.MainMenu(this.components); |
||||
this.menuItem1 = new System.Windows.Forms.MenuItem(); |
||||
this.SuspendLayout(); |
||||
//
|
||||
// propertyGrid
|
||||
//
|
||||
this.propertyGrid.Dock = System.Windows.Forms.DockStyle.Fill; |
||||
this.propertyGrid.LineColor = System.Drawing.SystemColors.ScrollBar; |
||||
this.propertyGrid.Location = new System.Drawing.Point(0, 3); |
||||
this.propertyGrid.Name = "propertyGrid"; |
||||
this.propertyGrid.Size = new System.Drawing.Size(208, 283); |
||||
this.propertyGrid.TabIndex = 0; |
||||
//
|
||||
// comboBox
|
||||
//
|
||||
this.comboBox.Dock = System.Windows.Forms.DockStyle.Top; |
||||
this.comboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; |
||||
this.comboBox.Items.AddRange(new object[] { |
||||
"propertyGrid"}); |
||||
this.comboBox.Location = new System.Drawing.Point(0, 3); |
||||
this.comboBox.Name = "comboBox"; |
||||
this.comboBox.Size = new System.Drawing.Size(208, 21); |
||||
this.comboBox.TabIndex = 1; |
||||
//
|
||||
// mainMenu1
|
||||
//
|
||||
this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { |
||||
this.menuItem1}); |
||||
//
|
||||
// menuItem1
|
||||
//
|
||||
this.menuItem1.Index = 0; |
||||
this.menuItem1.Text = "File"; |
||||
//
|
||||
// DummyPropertyWindow
|
||||
//
|
||||
this.ClientSize = new System.Drawing.Size(208, 289); |
||||
this.Controls.Add(this.comboBox); |
||||
this.Controls.Add(this.propertyGrid); |
||||
this.DockAreas = ((WeifenLuo.WinFormsUI.Docking.DockAreas)(((((WeifenLuo.WinFormsUI.Docking.DockAreas.Float | WeifenLuo.WinFormsUI.Docking.DockAreas.DockLeft) |
||||
| WeifenLuo.WinFormsUI.Docking.DockAreas.DockRight) |
||||
| WeifenLuo.WinFormsUI.Docking.DockAreas.DockTop) |
||||
| WeifenLuo.WinFormsUI.Docking.DockAreas.DockBottom))); |
||||
this.HideOnClose = true; |
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
||||
this.Menu = this.mainMenu1; |
||||
this.Name = "DummyPropertyWindow"; |
||||
this.Padding = new System.Windows.Forms.Padding(0, 3, 0, 3); |
||||
this.ShowHint = WeifenLuo.WinFormsUI.Docking.DockState.DockRight; |
||||
this.TabText = "Properties"; |
||||
this.Text = "Properties"; |
||||
this.ResumeLayout(false); |
||||
|
||||
} |
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.PropertyGrid propertyGrid; |
||||
private System.Windows.Forms.ComboBox comboBox; |
||||
private System.Windows.Forms.MainMenu mainMenu1; |
||||
private System.Windows.Forms.MenuItem menuItem1; |
||||
} |
||||
} |
||||
@ -1,21 +0,0 @@
@@ -1,21 +0,0 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.ComponentModel; |
||||
using System.Data; |
||||
using System.Drawing; |
||||
using System.Text; |
||||
using System.Windows.Forms; |
||||
using WeifenLuo.WinFormsUI.Docking; |
||||
|
||||
namespace DockSample |
||||
{ |
||||
public partial class DummyPropertyWindow : ToolWindow |
||||
{ |
||||
public DummyPropertyWindow() |
||||
{ |
||||
InitializeComponent(); |
||||
comboBox.SelectedIndex = 0; |
||||
propertyGrid.SelectedObject = propertyGrid; |
||||
} |
||||
} |
||||
} |
||||
@ -1,141 +0,0 @@
@@ -1,141 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<root> |
||||
<!-- |
||||
Microsoft ResX Schema |
||||
|
||||
Version 2.0 |
||||
|
||||
The primary goals of this format is to allow a simple XML format |
||||
that is mostly human readable. The generation and parsing of the |
||||
various data types are done through the TypeConverter classes |
||||
associated with the data types. |
||||
|
||||
Example: |
||||
|
||||
... ado.net/XML headers & schema ... |
||||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
||||
<resheader name="version">2.0</resheader> |
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
||||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
||||
</data> |
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
||||
<comment>This is a comment</comment> |
||||
</data> |
||||
|
||||
There are any number of "resheader" rows that contain simple |
||||
name/value pairs. |
||||
|
||||
Each data row contains a name, and value. The row also contains a |
||||
type or mimetype. Type corresponds to a .NET class that support |
||||
text/value conversion through the TypeConverter architecture. |
||||
Classes that don't support this are serialized and stored with the |
||||
mimetype set. |
||||
|
||||
The mimetype is used for serialized objects, and tells the |
||||
ResXResourceReader how to depersist the object. This is currently not |
||||
extensible. For a given mimetype the value must be set accordingly: |
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format |
||||
that the ResXResourceWriter will generate, however the reader can |
||||
read any of the formats listed below. |
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64 |
||||
value : The object must be serialized with |
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
||||
: and then encoded with base64 encoding. |
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64 |
||||
value : The object must be serialized with |
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
||||
: and then encoded with base64 encoding. |
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
||||
value : The object must be serialized into a byte array |
||||
: using a System.ComponentModel.TypeConverter |
||||
: and then encoded with base64 encoding. |
||||
--> |
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
||||
<xsd:element name="root" msdata:IsDataSet="true"> |
||||
<xsd:complexType> |
||||
<xsd:choice maxOccurs="unbounded"> |
||||
<xsd:element name="metadata"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
||||
<xsd:attribute name="type" type="xsd:string" /> |
||||
<xsd:attribute name="mimetype" type="xsd:string" /> |
||||
<xsd:attribute ref="xml:space" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="assembly"> |
||||
<xsd:complexType> |
||||
<xsd:attribute name="alias" type="xsd:string" /> |
||||
<xsd:attribute name="name" type="xsd:string" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="data"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
||||
<xsd:attribute ref="xml:space" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="resheader"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
</xsd:choice> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
</xsd:schema> |
||||
<resheader name="resmimetype"> |
||||
<value>text/microsoft-resx</value> |
||||
</resheader> |
||||
<resheader name="version"> |
||||
<value>2.0</value> |
||||
</resheader> |
||||
<resheader name="reader"> |
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
</resheader> |
||||
<resheader name="writer"> |
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
</resheader> |
||||
<metadata name="mainMenu1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
||||
<value>17, 17</value> |
||||
</metadata> |
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
<value> |
||||
AAABAAEAICAQAAAAAADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAAAIAAAAAAAAAAAAAEAAAABAA |
||||
AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP// |
||||
AAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
||||
AAAAAAAAAAAAAAD/////////////AAAAAAAA/////////////wAAAAAAAP8AAP8AAAAAAP8AAAAAAAD/ |
||||
AAD/AAAAAAD/AAAAAAAA/////////////wAAAAAAAP////////////8AAAAAAAD/AAD/AAAAAAD/AAAA |
||||
AAAA/wAA/wAAAAAA/wAAAAAAAP////////////8AAAAAAAD/////////////AAAAAAAA//8AAP///wD/ |
||||
/wAAAAAAAP//AAD///8A//8AAAAAAAD//wAAAP8AAAD/AAAAAEQA//8AAAD/AAAA/wAAAABEAP///wAA |
||||
AAAAAAAAAABERAD///8AAAAAAAAAAAAAREQAAAAAAAAAAAAAAAAAAEREAAAAAAAAAAAAAAAAAABERAAA |
||||
AAAAAAAAAAAAAAAAREQAAAAAAAAAAAAAAAAAAEREAAAAAAAAAAAAAAAAAABERAAAAAAAAAAAAAAAAAAA |
||||
REQAAAAAAAAAAAAAAAAAAEREAAAAAAAAAAAAAAAAAABERAAAAAAAAAAAAAAAAAAAREQAAAAAAAAAAAAA |
||||
AAAAAEREAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//////////wAAAP8AAAD/AAAA/wAA |
||||
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AMDA/ADAwPwAMzAwADMwMAAM |
||||
z8AADM/A//M/8P/zP/D//P/w//z/8P//AAD//wAA////8P////D//////////w== |
||||
</value> |
||||
</data> |
||||
</root> |
||||
@ -1,462 +0,0 @@
@@ -1,462 +0,0 @@
|
||||
namespace DockSample |
||||
{ |
||||
partial class DummySolutionExplorer |
||||
{ |
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null; |
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing) |
||||
{ |
||||
if (disposing && (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() |
||||
{ |
||||
this.components = new System.ComponentModel.Container(); |
||||
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("Solution \'WinFormsUI\' (2 projects)"); |
||||
System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("System", 6, 6); |
||||
System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("System.Data", 6, 6); |
||||
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("System.Drawing", 6, 6); |
||||
System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("System.Windows.Forms", 6, 6); |
||||
System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("System.XML", 6, 6); |
||||
System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("WeifenLuo.WinFormsUI.Docking", 6, 6); |
||||
System.Windows.Forms.TreeNode treeNode8 = new System.Windows.Forms.TreeNode("References", 4, 4, new System.Windows.Forms.TreeNode[] { |
||||
treeNode2, |
||||
treeNode3, |
||||
treeNode4, |
||||
treeNode5, |
||||
treeNode6, |
||||
treeNode7}); |
||||
System.Windows.Forms.TreeNode treeNode9 = new System.Windows.Forms.TreeNode("BlankIcon.ico", 5, 5); |
||||
System.Windows.Forms.TreeNode treeNode10 = new System.Windows.Forms.TreeNode("CSProject.ico", 5, 5); |
||||
System.Windows.Forms.TreeNode treeNode11 = new System.Windows.Forms.TreeNode("OutputWindow.ico", 5, 5); |
||||
System.Windows.Forms.TreeNode treeNode12 = new System.Windows.Forms.TreeNode("References.ico", 5, 5); |
||||
System.Windows.Forms.TreeNode treeNode13 = new System.Windows.Forms.TreeNode("SolutionExplorer.ico", 5, 5); |
||||
System.Windows.Forms.TreeNode treeNode14 = new System.Windows.Forms.TreeNode("TaskListWindow.ico", 5, 5); |
||||
System.Windows.Forms.TreeNode treeNode15 = new System.Windows.Forms.TreeNode("ToolboxWindow.ico", 5, 5); |
||||
System.Windows.Forms.TreeNode treeNode16 = new System.Windows.Forms.TreeNode("Images", 2, 1, new System.Windows.Forms.TreeNode[] { |
||||
treeNode9, |
||||
treeNode10, |
||||
treeNode11, |
||||
treeNode12, |
||||
treeNode13, |
||||
treeNode14, |
||||
treeNode15}); |
||||
System.Windows.Forms.TreeNode treeNode17 = new System.Windows.Forms.TreeNode("AboutDialog.cs", 8, 8); |
||||
System.Windows.Forms.TreeNode treeNode18 = new System.Windows.Forms.TreeNode("App.ico", 5, 5); |
||||
System.Windows.Forms.TreeNode treeNode19 = new System.Windows.Forms.TreeNode("AssemblyInfo.cs", 7, 7); |
||||
System.Windows.Forms.TreeNode treeNode20 = new System.Windows.Forms.TreeNode("DummyOutputWindow.cs", 8, 8); |
||||
System.Windows.Forms.TreeNode treeNode21 = new System.Windows.Forms.TreeNode("DummyPropertyWindow.cs", 8, 8); |
||||
System.Windows.Forms.TreeNode treeNode22 = new System.Windows.Forms.TreeNode("DummySolutionExplorer.cs", 8, 8); |
||||
System.Windows.Forms.TreeNode treeNode23 = new System.Windows.Forms.TreeNode("DummyTaskList.cs", 8, 8); |
||||
System.Windows.Forms.TreeNode treeNode24 = new System.Windows.Forms.TreeNode("DummyToolbox.cs", 8, 8); |
||||
System.Windows.Forms.TreeNode treeNode25 = new System.Windows.Forms.TreeNode("MianForm.cs", 8, 8); |
||||
System.Windows.Forms.TreeNode treeNode26 = new System.Windows.Forms.TreeNode("Options.cs", 7, 7); |
||||
System.Windows.Forms.TreeNode treeNode27 = new System.Windows.Forms.TreeNode("OptionsDialog.cs", 8, 8); |
||||
System.Windows.Forms.TreeNode treeNode28 = new System.Windows.Forms.TreeNode("DockSample", 3, 3, new System.Windows.Forms.TreeNode[] { |
||||
treeNode8, |
||||
treeNode16, |
||||
treeNode17, |
||||
treeNode18, |
||||
treeNode19, |
||||
treeNode20, |
||||
treeNode21, |
||||
treeNode22, |
||||
treeNode23, |
||||
treeNode24, |
||||
treeNode25, |
||||
treeNode26, |
||||
treeNode27}); |
||||
System.Windows.Forms.TreeNode treeNode29 = new System.Windows.Forms.TreeNode("System", 6, 6); |
||||
System.Windows.Forms.TreeNode treeNode30 = new System.Windows.Forms.TreeNode("System.Data", 6, 6); |
||||
System.Windows.Forms.TreeNode treeNode31 = new System.Windows.Forms.TreeNode("System.Design", 6, 6); |
||||
System.Windows.Forms.TreeNode treeNode32 = new System.Windows.Forms.TreeNode("System.Drawing", 6, 6); |
||||
System.Windows.Forms.TreeNode treeNode33 = new System.Windows.Forms.TreeNode("System.Windows.Forms", 6, 6); |
||||
System.Windows.Forms.TreeNode treeNode34 = new System.Windows.Forms.TreeNode("System.XML", 6, 6); |
||||
System.Windows.Forms.TreeNode treeNode35 = new System.Windows.Forms.TreeNode("References", 4, 4, new System.Windows.Forms.TreeNode[] { |
||||
treeNode29, |
||||
treeNode30, |
||||
treeNode31, |
||||
treeNode32, |
||||
treeNode33, |
||||
treeNode34}); |
||||
System.Windows.Forms.TreeNode treeNode36 = new System.Windows.Forms.TreeNode("DockWindow.AutoHideNo.bmp", 9, 9); |
||||
System.Windows.Forms.TreeNode treeNode37 = new System.Windows.Forms.TreeNode("DockWindow.AutoHideYes.bmp", 9, 9); |
||||
System.Windows.Forms.TreeNode treeNode38 = new System.Windows.Forms.TreeNode("DockWindow.Close.bmp", 9, 9); |
||||
System.Windows.Forms.TreeNode treeNode39 = new System.Windows.Forms.TreeNode("DocumentWindow.Close.bmp", 9, 9); |
||||
System.Windows.Forms.TreeNode treeNode40 = new System.Windows.Forms.TreeNode("DocumentWindow.ScrollLeftDisabled.bmp", 9, 9); |
||||
System.Windows.Forms.TreeNode treeNode41 = new System.Windows.Forms.TreeNode("DocumentWindow.ScrollLeftEnabled.bmp", 9, 9); |
||||
System.Windows.Forms.TreeNode treeNode42 = new System.Windows.Forms.TreeNode("DocumentWindow.ScrollRightDisabled.bmp", 9, 9); |
||||
System.Windows.Forms.TreeNode treeNode43 = new System.Windows.Forms.TreeNode("DocumentWindow.ScrollRightEnabled.bmp", 9, 9); |
||||
System.Windows.Forms.TreeNode treeNode44 = new System.Windows.Forms.TreeNode("Resources", 2, 1, new System.Windows.Forms.TreeNode[] { |
||||
treeNode36, |
||||
treeNode37, |
||||
treeNode38, |
||||
treeNode39, |
||||
treeNode40, |
||||
treeNode41, |
||||
treeNode42, |
||||
treeNode43}); |
||||
System.Windows.Forms.TreeNode treeNode45 = new System.Windows.Forms.TreeNode("Enums.cs", 7, 7); |
||||
System.Windows.Forms.TreeNode treeNode46 = new System.Windows.Forms.TreeNode("Gdi32.cs", 7, 3); |
||||
System.Windows.Forms.TreeNode treeNode47 = new System.Windows.Forms.TreeNode("Structs.cs", 7, 7); |
||||
System.Windows.Forms.TreeNode treeNode48 = new System.Windows.Forms.TreeNode("User32.cs", 7, 7); |
||||
System.Windows.Forms.TreeNode treeNode49 = new System.Windows.Forms.TreeNode("Win32", 2, 1, new System.Windows.Forms.TreeNode[] { |
||||
treeNode45, |
||||
treeNode46, |
||||
treeNode47, |
||||
treeNode48}); |
||||
System.Windows.Forms.TreeNode treeNode50 = new System.Windows.Forms.TreeNode("AssemblyInfo.cs", 7, 7); |
||||
System.Windows.Forms.TreeNode treeNode51 = new System.Windows.Forms.TreeNode("Content.cs", 8, 8); |
||||
System.Windows.Forms.TreeNode treeNode52 = new System.Windows.Forms.TreeNode("CotentCollection.cs", 7, 7); |
||||
System.Windows.Forms.TreeNode treeNode53 = new System.Windows.Forms.TreeNode("CotentWindowCollection.cs", 7, 7); |
||||
System.Windows.Forms.TreeNode treeNode54 = new System.Windows.Forms.TreeNode("DockHelper.cs", 7, 7); |
||||
System.Windows.Forms.TreeNode treeNode55 = new System.Windows.Forms.TreeNode("DragHandler.cs", 7, 7); |
||||
System.Windows.Forms.TreeNode treeNode56 = new System.Windows.Forms.TreeNode("DragHandlerBase.cs", 7, 7); |
||||
System.Windows.Forms.TreeNode treeNode57 = new System.Windows.Forms.TreeNode("FloatWindow.cs", 8, 8); |
||||
System.Windows.Forms.TreeNode treeNode58 = new System.Windows.Forms.TreeNode("HiddenMdiChild.cs", 8, 8); |
||||
System.Windows.Forms.TreeNode treeNode59 = new System.Windows.Forms.TreeNode("InertButton.cs", 7, 7); |
||||
System.Windows.Forms.TreeNode treeNode60 = new System.Windows.Forms.TreeNode("Measures.cs", 7, 7); |
||||
System.Windows.Forms.TreeNode treeNode61 = new System.Windows.Forms.TreeNode("NormalTabStripWindow.cs", 8, 8); |
||||
System.Windows.Forms.TreeNode treeNode62 = new System.Windows.Forms.TreeNode("ResourceHelper.cs", 7, 7); |
||||
System.Windows.Forms.TreeNode treeNode63 = new System.Windows.Forms.TreeNode("WeifenLuo.WinFormsUI.Docking", 3, 3, new System.Windows.Forms.TreeNode[] { |
||||
treeNode35, |
||||
treeNode44, |
||||
treeNode49, |
||||
treeNode50, |
||||
treeNode51, |
||||
treeNode52, |
||||
treeNode53, |
||||
treeNode54, |
||||
treeNode55, |
||||
treeNode56, |
||||
treeNode57, |
||||
treeNode58, |
||||
treeNode59, |
||||
treeNode60, |
||||
treeNode61, |
||||
treeNode62}); |
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DummySolutionExplorer)); |
||||
this.treeView1 = new System.Windows.Forms.TreeView(); |
||||
this.imageList1 = new System.Windows.Forms.ImageList(this.components); |
||||
this.SuspendLayout(); |
||||
//
|
||||
// treeView1
|
||||
//
|
||||
this.treeView1.Dock = System.Windows.Forms.DockStyle.Fill; |
||||
this.treeView1.ImageIndex = 0; |
||||
this.treeView1.ImageList = this.imageList1; |
||||
this.treeView1.Indent = 19; |
||||
this.treeView1.Location = new System.Drawing.Point(0, 24); |
||||
this.treeView1.Name = "treeView1"; |
||||
treeNode1.Name = ""; |
||||
treeNode1.Text = "Solution \'WinFormsUI\' (2 projects)"; |
||||
treeNode2.ImageIndex = 6; |
||||
treeNode2.Name = ""; |
||||
treeNode2.SelectedImageIndex = 6; |
||||
treeNode2.Text = "System"; |
||||
treeNode3.ImageIndex = 6; |
||||
treeNode3.Name = ""; |
||||
treeNode3.SelectedImageIndex = 6; |
||||
treeNode3.Text = "System.Data"; |
||||
treeNode4.ImageIndex = 6; |
||||
treeNode4.Name = ""; |
||||
treeNode4.SelectedImageIndex = 6; |
||||
treeNode4.Text = "System.Drawing"; |
||||
treeNode5.ImageIndex = 6; |
||||
treeNode5.Name = ""; |
||||
treeNode5.SelectedImageIndex = 6; |
||||
treeNode5.Text = "System.Windows.Forms"; |
||||
treeNode6.ImageIndex = 6; |
||||
treeNode6.Name = ""; |
||||
treeNode6.SelectedImageIndex = 6; |
||||
treeNode6.Text = "System.XML"; |
||||
treeNode7.ImageIndex = 6; |
||||
treeNode7.Name = ""; |
||||
treeNode7.SelectedImageIndex = 6; |
||||
treeNode7.Text = "WeifenLuo.WinFormsUI.Docking"; |
||||
treeNode8.ImageIndex = 4; |
||||
treeNode8.Name = ""; |
||||
treeNode8.SelectedImageIndex = 4; |
||||
treeNode8.Text = "References"; |
||||
treeNode9.ImageIndex = 5; |
||||
treeNode9.Name = ""; |
||||
treeNode9.SelectedImageIndex = 5; |
||||
treeNode9.Text = "BlankIcon.ico"; |
||||
treeNode10.ImageIndex = 5; |
||||
treeNode10.Name = ""; |
||||
treeNode10.SelectedImageIndex = 5; |
||||
treeNode10.Text = "CSProject.ico"; |
||||
treeNode11.ImageIndex = 5; |
||||
treeNode11.Name = ""; |
||||
treeNode11.SelectedImageIndex = 5; |
||||
treeNode11.Text = "OutputWindow.ico"; |
||||
treeNode12.ImageIndex = 5; |
||||
treeNode12.Name = ""; |
||||
treeNode12.SelectedImageIndex = 5; |
||||
treeNode12.Text = "References.ico"; |
||||
treeNode13.ImageIndex = 5; |
||||
treeNode13.Name = ""; |
||||
treeNode13.SelectedImageIndex = 5; |
||||
treeNode13.Text = "SolutionExplorer.ico"; |
||||
treeNode14.ImageIndex = 5; |
||||
treeNode14.Name = ""; |
||||
treeNode14.SelectedImageIndex = 5; |
||||
treeNode14.Text = "TaskListWindow.ico"; |
||||
treeNode15.ImageIndex = 5; |
||||
treeNode15.Name = ""; |
||||
treeNode15.SelectedImageIndex = 5; |
||||
treeNode15.Text = "ToolboxWindow.ico"; |
||||
treeNode16.ImageIndex = 2; |
||||
treeNode16.Name = ""; |
||||
treeNode16.SelectedImageIndex = 1; |
||||
treeNode16.Text = "Images"; |
||||
treeNode17.ImageIndex = 8; |
||||
treeNode17.Name = ""; |
||||
treeNode17.SelectedImageIndex = 8; |
||||
treeNode17.Text = "AboutDialog.cs"; |
||||
treeNode18.ImageIndex = 5; |
||||
treeNode18.Name = ""; |
||||
treeNode18.SelectedImageIndex = 5; |
||||
treeNode18.Text = "App.ico"; |
||||
treeNode19.ImageIndex = 7; |
||||
treeNode19.Name = ""; |
||||
treeNode19.SelectedImageIndex = 7; |
||||
treeNode19.Text = "AssemblyInfo.cs"; |
||||
treeNode20.ImageIndex = 8; |
||||
treeNode20.Name = ""; |
||||
treeNode20.SelectedImageIndex = 8; |
||||
treeNode20.Text = "DummyOutputWindow.cs"; |
||||
treeNode21.ImageIndex = 8; |
||||
treeNode21.Name = ""; |
||||
treeNode21.SelectedImageIndex = 8; |
||||
treeNode21.Text = "DummyPropertyWindow.cs"; |
||||
treeNode22.ImageIndex = 8; |
||||
treeNode22.Name = ""; |
||||
treeNode22.SelectedImageIndex = 8; |
||||
treeNode22.Text = "DummySolutionExplorer.cs"; |
||||
treeNode23.ImageIndex = 8; |
||||
treeNode23.Name = ""; |
||||
treeNode23.SelectedImageIndex = 8; |
||||
treeNode23.Text = "DummyTaskList.cs"; |
||||
treeNode24.ImageIndex = 8; |
||||
treeNode24.Name = ""; |
||||
treeNode24.SelectedImageIndex = 8; |
||||
treeNode24.Text = "DummyToolbox.cs"; |
||||
treeNode25.ImageIndex = 8; |
||||
treeNode25.Name = ""; |
||||
treeNode25.SelectedImageIndex = 8; |
||||
treeNode25.Text = "MianForm.cs"; |
||||
treeNode26.ImageIndex = 7; |
||||
treeNode26.Name = ""; |
||||
treeNode26.SelectedImageIndex = 7; |
||||
treeNode26.Text = "Options.cs"; |
||||
treeNode27.ImageIndex = 8; |
||||
treeNode27.Name = ""; |
||||
treeNode27.SelectedImageIndex = 8; |
||||
treeNode27.Text = "OptionsDialog.cs"; |
||||
treeNode28.ImageIndex = 3; |
||||
treeNode28.Name = ""; |
||||
treeNode28.SelectedImageIndex = 3; |
||||
treeNode28.Text = "DockSample"; |
||||
treeNode29.ImageIndex = 6; |
||||
treeNode29.Name = ""; |
||||
treeNode29.SelectedImageIndex = 6; |
||||
treeNode29.Text = "System"; |
||||
treeNode30.ImageIndex = 6; |
||||
treeNode30.Name = ""; |
||||
treeNode30.SelectedImageIndex = 6; |
||||
treeNode30.Text = "System.Data"; |
||||
treeNode31.ImageIndex = 6; |
||||
treeNode31.Name = ""; |
||||
treeNode31.SelectedImageIndex = 6; |
||||
treeNode31.Text = "System.Design"; |
||||
treeNode32.ImageIndex = 6; |
||||
treeNode32.Name = ""; |
||||
treeNode32.SelectedImageIndex = 6; |
||||
treeNode32.Text = "System.Drawing"; |
||||
treeNode33.ImageIndex = 6; |
||||
treeNode33.Name = ""; |
||||
treeNode33.SelectedImageIndex = 6; |
||||
treeNode33.Text = "System.Windows.Forms"; |
||||
treeNode34.ImageIndex = 6; |
||||
treeNode34.Name = ""; |
||||
treeNode34.SelectedImageIndex = 6; |
||||
treeNode34.Text = "System.XML"; |
||||
treeNode35.ImageIndex = 4; |
||||
treeNode35.Name = ""; |
||||
treeNode35.SelectedImageIndex = 4; |
||||
treeNode35.Text = "References"; |
||||
treeNode36.ImageIndex = 9; |
||||
treeNode36.Name = ""; |
||||
treeNode36.SelectedImageIndex = 9; |
||||
treeNode36.Text = "DockWindow.AutoHideNo.bmp"; |
||||
treeNode37.ImageIndex = 9; |
||||
treeNode37.Name = ""; |
||||
treeNode37.SelectedImageIndex = 9; |
||||
treeNode37.Text = "DockWindow.AutoHideYes.bmp"; |
||||
treeNode38.ImageIndex = 9; |
||||
treeNode38.Name = ""; |
||||
treeNode38.SelectedImageIndex = 9; |
||||
treeNode38.Text = "DockWindow.Close.bmp"; |
||||
treeNode39.ImageIndex = 9; |
||||
treeNode39.Name = ""; |
||||
treeNode39.SelectedImageIndex = 9; |
||||
treeNode39.Text = "DocumentWindow.Close.bmp"; |
||||
treeNode40.ImageIndex = 9; |
||||
treeNode40.Name = ""; |
||||
treeNode40.SelectedImageIndex = 9; |
||||
treeNode40.Text = "DocumentWindow.ScrollLeftDisabled.bmp"; |
||||
treeNode41.ImageIndex = 9; |
||||
treeNode41.Name = ""; |
||||
treeNode41.SelectedImageIndex = 9; |
||||
treeNode41.Text = "DocumentWindow.ScrollLeftEnabled.bmp"; |
||||
treeNode42.ImageIndex = 9; |
||||
treeNode42.Name = ""; |
||||
treeNode42.SelectedImageIndex = 9; |
||||
treeNode42.Text = "DocumentWindow.ScrollRightDisabled.bmp"; |
||||
treeNode43.ImageIndex = 9; |
||||
treeNode43.Name = ""; |
||||
treeNode43.SelectedImageIndex = 9; |
||||
treeNode43.Text = "DocumentWindow.ScrollRightEnabled.bmp"; |
||||
treeNode44.ImageIndex = 2; |
||||
treeNode44.Name = ""; |
||||
treeNode44.SelectedImageIndex = 1; |
||||
treeNode44.Text = "Resources"; |
||||
treeNode45.ImageIndex = 7; |
||||
treeNode45.Name = ""; |
||||
treeNode45.SelectedImageIndex = 7; |
||||
treeNode45.Text = "Enums.cs"; |
||||
treeNode46.ImageIndex = 7; |
||||
treeNode46.Name = ""; |
||||
treeNode46.SelectedImageIndex = 3; |
||||
treeNode46.Text = "Gdi32.cs"; |
||||
treeNode47.ImageIndex = 7; |
||||
treeNode47.Name = ""; |
||||
treeNode47.SelectedImageIndex = 7; |
||||
treeNode47.Text = "Structs.cs"; |
||||
treeNode48.ImageIndex = 7; |
||||
treeNode48.Name = ""; |
||||
treeNode48.SelectedImageIndex = 7; |
||||
treeNode48.Text = "User32.cs"; |
||||
treeNode49.ImageIndex = 2; |
||||
treeNode49.Name = ""; |
||||
treeNode49.SelectedImageIndex = 1; |
||||
treeNode49.Text = "Win32"; |
||||
treeNode50.ImageIndex = 7; |
||||
treeNode50.Name = ""; |
||||
treeNode50.SelectedImageIndex = 7; |
||||
treeNode50.Text = "AssemblyInfo.cs"; |
||||
treeNode51.ImageIndex = 8; |
||||
treeNode51.Name = ""; |
||||
treeNode51.SelectedImageIndex = 8; |
||||
treeNode51.Text = "Content.cs"; |
||||
treeNode52.ImageIndex = 7; |
||||
treeNode52.Name = ""; |
||||
treeNode52.SelectedImageIndex = 7; |
||||
treeNode52.Text = "CotentCollection.cs"; |
||||
treeNode53.ImageIndex = 7; |
||||
treeNode53.Name = ""; |
||||
treeNode53.SelectedImageIndex = 7; |
||||
treeNode53.Text = "CotentWindowCollection.cs"; |
||||
treeNode54.ImageIndex = 7; |
||||
treeNode54.Name = ""; |
||||
treeNode54.SelectedImageIndex = 7; |
||||
treeNode54.Text = "DockHelper.cs"; |
||||
treeNode55.ImageIndex = 7; |
||||
treeNode55.Name = ""; |
||||
treeNode55.SelectedImageIndex = 7; |
||||
treeNode55.Text = "DragHandler.cs"; |
||||
treeNode56.ImageIndex = 7; |
||||
treeNode56.Name = ""; |
||||
treeNode56.SelectedImageIndex = 7; |
||||
treeNode56.Text = "DragHandlerBase.cs"; |
||||
treeNode57.ImageIndex = 8; |
||||
treeNode57.Name = ""; |
||||
treeNode57.SelectedImageIndex = 8; |
||||
treeNode57.Text = "FloatWindow.cs"; |
||||
treeNode58.ImageIndex = 8; |
||||
treeNode58.Name = ""; |
||||
treeNode58.SelectedImageIndex = 8; |
||||
treeNode58.Text = "HiddenMdiChild.cs"; |
||||
treeNode59.ImageIndex = 7; |
||||
treeNode59.Name = ""; |
||||
treeNode59.SelectedImageIndex = 7; |
||||
treeNode59.Text = "InertButton.cs"; |
||||
treeNode60.ImageIndex = 7; |
||||
treeNode60.Name = ""; |
||||
treeNode60.SelectedImageIndex = 7; |
||||
treeNode60.Text = "Measures.cs"; |
||||
treeNode61.ImageIndex = 8; |
||||
treeNode61.Name = ""; |
||||
treeNode61.SelectedImageIndex = 8; |
||||
treeNode61.Text = "NormalTabStripWindow.cs"; |
||||
treeNode62.ImageIndex = 7; |
||||
treeNode62.Name = ""; |
||||
treeNode62.SelectedImageIndex = 7; |
||||
treeNode62.Text = "ResourceHelper.cs"; |
||||
treeNode63.ImageIndex = 3; |
||||
treeNode63.Name = ""; |
||||
treeNode63.SelectedImageIndex = 3; |
||||
treeNode63.Text = "WeifenLuo.WinFormsUI.Docking"; |
||||
this.treeView1.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { |
||||
treeNode1, |
||||
treeNode28, |
||||
treeNode63}); |
||||
this.treeView1.SelectedImageIndex = 0; |
||||
this.treeView1.Size = new System.Drawing.Size(245, 297); |
||||
this.treeView1.TabIndex = 0; |
||||
//
|
||||
// imageList1
|
||||
//
|
||||
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); |
||||
this.imageList1.TransparentColor = System.Drawing.Color.Transparent; |
||||
this.imageList1.Images.SetKeyName(0, ""); |
||||
this.imageList1.Images.SetKeyName(1, ""); |
||||
this.imageList1.Images.SetKeyName(2, ""); |
||||
this.imageList1.Images.SetKeyName(3, ""); |
||||
this.imageList1.Images.SetKeyName(4, ""); |
||||
this.imageList1.Images.SetKeyName(5, ""); |
||||
this.imageList1.Images.SetKeyName(6, ""); |
||||
this.imageList1.Images.SetKeyName(7, ""); |
||||
this.imageList1.Images.SetKeyName(8, ""); |
||||
this.imageList1.Images.SetKeyName(9, ""); |
||||
//
|
||||
// DummySolutionExplorer
|
||||
//
|
||||
this.ClientSize = new System.Drawing.Size(245, 322); |
||||
this.Controls.Add(this.treeView1); |
||||
this.DockAreas = ((WeifenLuo.WinFormsUI.Docking.DockAreas)((((WeifenLuo.WinFormsUI.Docking.DockAreas.DockLeft | WeifenLuo.WinFormsUI.Docking.DockAreas.DockRight) |
||||
| WeifenLuo.WinFormsUI.Docking.DockAreas.DockTop) |
||||
| WeifenLuo.WinFormsUI.Docking.DockAreas.DockBottom))); |
||||
this.HideOnClose = true; |
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
||||
this.Name = "DummySolutionExplorer"; |
||||
this.Padding = new System.Windows.Forms.Padding(0, 24, 0, 1); |
||||
this.ShowHint = WeifenLuo.WinFormsUI.Docking.DockState.DockRight; |
||||
this.TabText = "Solution Explorer"; |
||||
this.Text = "Solution Explorer - WinFormsUI"; |
||||
this.ResumeLayout(false); |
||||
|
||||
} |
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.TreeView treeView1; |
||||
private System.Windows.Forms.ImageList imageList1; |
||||
} |
||||
} |
||||
@ -1,24 +0,0 @@
@@ -1,24 +0,0 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.ComponentModel; |
||||
using System.Data; |
||||
using System.Drawing; |
||||
using System.Text; |
||||
using System.Windows.Forms; |
||||
using WeifenLuo.WinFormsUI.Docking; |
||||
|
||||
namespace DockSample |
||||
{ |
||||
public partial class DummySolutionExplorer : ToolWindow |
||||
{ |
||||
public DummySolutionExplorer() |
||||
{ |
||||
InitializeComponent(); |
||||
} |
||||
|
||||
protected override void OnRightToLeftLayoutChanged(EventArgs e) |
||||
{ |
||||
treeView1.RightToLeftLayout = RightToLeftLayout; |
||||
} |
||||
} |
||||
} |
||||
@ -1,220 +0,0 @@
@@ -1,220 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<root> |
||||
<!-- |
||||
Microsoft ResX Schema |
||||
|
||||
Version 2.0 |
||||
|
||||
The primary goals of this format is to allow a simple XML format |
||||
that is mostly human readable. The generation and parsing of the |
||||
various data types are done through the TypeConverter classes |
||||
associated with the data types. |
||||
|
||||
Example: |
||||
|
||||
... ado.net/XML headers & schema ... |
||||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
||||
<resheader name="version">2.0</resheader> |
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
||||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
||||
</data> |
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
||||
<comment>This is a comment</comment> |
||||
</data> |
||||
|
||||
There are any number of "resheader" rows that contain simple |
||||
name/value pairs. |
||||
|
||||
Each data row contains a name, and value. The row also contains a |
||||
type or mimetype. Type corresponds to a .NET class that support |
||||
text/value conversion through the TypeConverter architecture. |
||||
Classes that don't support this are serialized and stored with the |
||||
mimetype set. |
||||
|
||||
The mimetype is used for serialized objects, and tells the |
||||
ResXResourceReader how to depersist the object. This is currently not |
||||
extensible. For a given mimetype the value must be set accordingly: |
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format |
||||
that the ResXResourceWriter will generate, however the reader can |
||||
read any of the formats listed below. |
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64 |
||||
value : The object must be serialized with |
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
||||
: and then encoded with base64 encoding. |
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64 |
||||
value : The object must be serialized with |
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
||||
: and then encoded with base64 encoding. |
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
||||
value : The object must be serialized into a byte array |
||||
: using a System.ComponentModel.TypeConverter |
||||
: and then encoded with base64 encoding. |
||||
--> |
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
||||
<xsd:element name="root" msdata:IsDataSet="true"> |
||||
<xsd:complexType> |
||||
<xsd:choice maxOccurs="unbounded"> |
||||
<xsd:element name="metadata"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
||||
<xsd:attribute name="type" type="xsd:string" /> |
||||
<xsd:attribute name="mimetype" type="xsd:string" /> |
||||
<xsd:attribute ref="xml:space" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="assembly"> |
||||
<xsd:complexType> |
||||
<xsd:attribute name="alias" type="xsd:string" /> |
||||
<xsd:attribute name="name" type="xsd:string" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="data"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
||||
<xsd:attribute ref="xml:space" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="resheader"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
</xsd:choice> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
</xsd:schema> |
||||
<resheader name="resmimetype"> |
||||
<value>text/microsoft-resx</value> |
||||
</resheader> |
||||
<resheader name="version"> |
||||
<value>2.0</value> |
||||
</resheader> |
||||
<resheader name="reader"> |
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
</resheader> |
||||
<resheader name="writer"> |
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
</resheader> |
||||
<metadata name="imageList1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
||||
<value>23, 17</value> |
||||
</metadata> |
||||
<data name="imageList1.ImageStream" mimetype="application/x-microsoft.net.object.binary.base64"> |
||||
<value> |
||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj0yLjAuMC4w |
||||
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 |
||||
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADY |
||||
EAAAAk1TRnQBSQFMAgEBCgEAAQ4BAAEEAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo |
||||
AwABQAMAATADAAEBAQABCAYAAQwYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA |
||||
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 |
||||
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA |
||||
AWYDAAGZAwABzAIAATMDAAIzAgABMwFmAgABMwGZAgABMwHMAgABMwH/AgABZgMAAWYBMwIAAmYCAAFm |
||||
AZkCAAFmAcwCAAFmAf8CAAGZAwABmQEzAgABmQFmAgACmQIAAZkBzAIAAZkB/wIAAcwDAAHMATMCAAHM |
||||
AWYCAAHMAZkCAALMAgABzAH/AgAB/wFmAgAB/wGZAgAB/wHMAQABMwH/AgAB/wEAATMBAAEzAQABZgEA |
||||
ATMBAAGZAQABMwEAAcwBAAEzAQAB/wEAAf8BMwIAAzMBAAIzAWYBAAIzAZkBAAIzAcwBAAIzAf8BAAEz |
||||
AWYCAAEzAWYBMwEAATMCZgEAATMBZgGZAQABMwFmAcwBAAEzAWYB/wEAATMBmQIAATMBmQEzAQABMwGZ |
||||
AWYBAAEzApkBAAEzAZkBzAEAATMBmQH/AQABMwHMAgABMwHMATMBAAEzAcwBZgEAATMBzAGZAQABMwLM |
||||
AQABMwHMAf8BAAEzAf8BMwEAATMB/wFmAQABMwH/AZkBAAEzAf8BzAEAATMC/wEAAWYDAAFmAQABMwEA |
||||
AWYBAAFmAQABZgEAAZkBAAFmAQABzAEAAWYBAAH/AQABZgEzAgABZgIzAQABZgEzAWYBAAFmATMBmQEA |
||||
AWYBMwHMAQABZgEzAf8BAAJmAgACZgEzAQADZgEAAmYBmQEAAmYBzAEAAWYBmQIAAWYBmQEzAQABZgGZ |
||||
AWYBAAFmApkBAAFmAZkBzAEAAWYBmQH/AQABZgHMAgABZgHMATMBAAFmAcwBmQEAAWYCzAEAAWYBzAH/ |
||||
AQABZgH/AgABZgH/ATMBAAFmAf8BmQEAAWYB/wHMAQABzAEAAf8BAAH/AQABzAEAApkCAAGZATMBmQEA |
||||
AZkBAAGZAQABmQEAAcwBAAGZAwABmQIzAQABmQEAAWYBAAGZATMBzAEAAZkBAAH/AQABmQFmAgABmQFm |
||||
ATMBAAGZATMBZgEAAZkBZgGZAQABmQFmAcwBAAGZATMB/wEAApkBMwEAApkBZgEAA5kBAAKZAcwBAAKZ |
||||
Af8BAAGZAcwCAAGZAcwBMwEAAWYBzAFmAQABmQHMAZkBAAGZAswBAAGZAcwB/wEAAZkB/wIAAZkB/wEz |
||||
AQABmQHMAWYBAAGZAf8BmQEAAZkB/wHMAQABmQL/AQABzAMAAZkBAAEzAQABzAEAAWYBAAHMAQABmQEA |
||||
AcwBAAHMAQABmQEzAgABzAIzAQABzAEzAWYBAAHMATMBmQEAAcwBMwHMAQABzAEzAf8BAAHMAWYCAAHM |
||||
AWYBMwEAAZkCZgEAAcwBZgGZAQABzAFmAcwBAAGZAWYB/wEAAcwBmQIAAcwBmQEzAQABzAGZAWYBAAHM |
||||
ApkBAAHMAZkBzAEAAcwBmQH/AQACzAIAAswBMwEAAswBZgEAAswBmQEAA8wBAALMAf8BAAHMAf8CAAHM |
||||
Af8BMwEAAZkB/wFmAQABzAH/AZkBAAHMAf8BzAEAAcwC/wEAAcwBAAEzAQAB/wEAAWYBAAH/AQABmQEA |
||||
AcwBMwIAAf8CMwEAAf8BMwFmAQAB/wEzAZkBAAH/ATMBzAEAAf8BMwH/AQAB/wFmAgAB/wFmATMBAAHM |
||||
AmYBAAH/AWYBmQEAAf8BZgHMAQABzAFmAf8BAAH/AZkCAAH/AZkBMwEAAf8BmQFmAQAB/wKZAQAB/wGZ |
||||
AcwBAAH/AZkB/wEAAf8BzAIAAf8BzAEzAQAB/wHMAWYBAAH/AcwBmQEAAf8CzAEAAf8BzAH/AQAC/wEz |
||||
AQABzAH/AWYBAAL/AZkBAAL/AcwBAAJmAf8BAAFmAf8BZgEAAWYC/wEAAf8CZgEAAf8BZgH/AQAC/wFm |
||||
AQABIQEAAaUBAANfAQADdwEAA4YBAAOWAQADywEAA7IBAAPXAQAD3QEAA+MBAAPqAQAD8QEAA/gBAAHw |
||||
AfsB/wEAAaQCoAEAA4ADAAH/AgAB/wMAAv8BAAH/AwAB/wEAAf8BAAL/AgAD/4IAAewMBwMAAewM/yMA |
||||
AewFBwbsAQcDAAHsAf8C7AMCAQMB/gIDAewB/yMAAewBBwPsAQcBAAT/AewBBwMAAewB/wEDAewBAgH+ |
||||
AQIB7AEDA+wB/yMAAewFBwUAAewBBwMAAewB/wEDAewBAgH7AQIE7AEDAf8jAAHsDAcDAAHsAf8CAAEC |
||||
Af4B+wECBAAB/yMAAewFBwbsAQcDAAHsAf8B/gECAf4B+wH+AfsBAgP+Af8jAAHsAQcD7AEHAQAE/wHs |
||||
AQcDAAHsAf8BAgH+AfsB/gECAf4B+wECAv4B/yMAAewFBwUAAewBBwMAAewB/wECAfsBAgH7AgIB/gEC |
||||
Af4BAAH/IwAB7AwHAwAB7AH/Af4CAgH+AQIB/gECAf4BAAH7Af8jAAHsDAcDAAHsAf8C/gECAfsBAgP+ |
||||
AQAB+wH/IwAOBAIAAewB/wP+AQIF/gEAAf8jAA4EAgAB7Az/MwAN7LQAAewD/wEHAv8BBwL/AQcB/xQA |
||||
AewLBwQADOwEAAHsA/8BBwL/AQcC/wEHAf8UAAHsCv8BBwQAAewC/wEHAf8BBwH/AQcB/wEHAv8EAAHs |
||||
CwcUAAHsBP8FBwH/AQcDAAHsAf8BAAL/BQAB7AEHAQAB7AMAAewB/wLsAQcC7AEHAuwBBwH/FAAB7Ar/ |
||||
AQcDAAHsAf8D7AUAAQcB7AEAAewDAAHsAf8C7AEHAuwBBwLsAQcB/wcAAewJBwMAAewE/wUHAf8BBwIA |
||||
AewC/wHsAf8E7AEAAQcB/wEAAuwDAAHsCwcHAAHsAv8BBwH/AQcB/wEHAf8BBwMAAewC/wECB/8BBwIA |
||||
AewL/wEAAQcB7AMAAewB/wLsAQcC7AEHAuwBBwH/AgAB7AH/BOwB/wEHAf8BBwH/AQcB/wIHAwAB7AH/ |
||||
AgIB/wECBAcB/wEHAgAN7AH/AewDAAHsAf8C7AEHAuwBBwLsAQcB/wMAAewDAAHsAv8BBwH/AQcB/wEH |
||||
Af8BBwMAAewC/wMCBf8BBwMAAewB/wEHAf8BBwH/AQcB/wEHAf8BBwH/AQcB7AMAAewLBwcAAewB/wEH |
||||
Af8BBwH/AQcB/wIHAwAB7AH/AgIB/wICBP8BBwMAAewC/wEHAf8BBwH/AQcF/wHsAwAB7AH/AuwBBwLs |
||||
AQcC7AEHAf8HAAHsCP8BBwMAAewC/wMCBP8CBwMAAewB/wEHAf8BBwH/AQcB/wbsAwAB7AH/AuwBBwLs |
||||
AQcC7AEHAf8IAAnsAwAB7AL/AQIB/wICAv8HAAHsBf8B7AkAAewIBxcAAewE/wECA/8B7AEAAewFAAXs |
||||
CgAB7AP/AQcC/wEHAf8B7AH/AewUAAHsCP8C7BUAAewD/wEHAv8BBwH/AuwVAArsFgAK7CQABf8DAAP/ |
||||
AwAC/zAABP8BAAH8AQABAQEAAf8B7AH7AwAB/yIAAewG/wcAA/8BAAL8AQAB+QEBAQAC+wEAAfokAAHs |
||||
Af8EBAH/BwAB/wEAAewBAAH8AQQB/wEBAfkBAQEAAfsB/wECAfoDAAzsAgAO7AIAAewB+wHsBv8HAAH/ |
||||
AewBBwECAfoBAgH/AQMBAQH5AQEBAAH/AQQB/AMAAewB/wH7AQcB+wEHAfsBBwH7AQcB+wHsAgAB7AH/ |
||||
AfsBBwH7AQcB+wEHAfsBBwH7AQcB+wHsAgAB7AH/AewB/wQEAf8BAAHsBQAB/wHsAf8BAgL6AQIC+wEB |
||||
AfkBAQEEAvwCAAHsAf8B+wEHAfsBBwH7AQcB+wEHAfsBBwEAAewBAAHsAf8BBwH7AQcB+wEHAfsBBwH7 |
||||
AQcB+wEHAewCAAHsAfsB7Ab/AQcF/wEAAf8B7AH/AgIB+gEAAfsBAAH/AQEB+QL8AQAB/wEAAewB/wEH |
||||
AfsBBwH7AQcB+wEHAfsBBwHsAQAB7AEAAewB/wH7AQcB+wEHAfsBBwH7AQcB+wEHAfsB7AIAAewB/wHs |
||||
Af8EBAL/AQIE/wEAAf8B7AL/AgIBAAEDAf8B7AH/AQECAAL/AewB/wEHAfsBBwH7AQcB+wEHAfsBBwH7 |
||||
AQAC7AEAAewB/wEHAfsBBwH7AQcB+wEHAfsBBwH7AQcB7AIAAewB+wHsBv8CAgH/AQIC/wEAAf8B7AT/ |
||||
AQcD/wEHAf8BBwHsAv8B7Ar/AewBAAEHAewBAAHsAf8B+wEHAfsBBwH7AQcB+wEHAfsBBwH7AewCAAHs |
||||
Af8G7AL/AwIC/wEAAf8B7AP/AQcB/wEHAf8BBwH/AQcB/wEAAv8N7AH7AewBAAHsAf8BBwH7AQcB+wEH |
||||
AfsBBwH7AQcB+wEHAewCAAHsAfsB/wH7Af8B+wP/AgIB/wICAf8BAAH/AewC/wEHA/8BBwH/AQcB/wEH |
||||
AQAC/wEAAewB/wEHAfsBBwH7AQcB+wEHAfsBBwH7AQcB7AEAAewB/wH7AQcB+wEHAfsBBwH7AQcB+wEH |
||||
AfsB7AIAB+wD/wMCAv8BAAH/AewF/wEHAf8BBwH/AQcB/wEAAv8BAAHsAf8B+wEHAfsBBwH7AQcF/wHs |
||||
AQAB7Az/AewEAAHsB/8BAgH/AgIB/wEAAf8B7AT/AQcD/wEHAf8BBwEAAv8BAAHsAf8BBwH7AQcB+wEH |
||||
Af8G7AEAAewBBwH7AQcB+wEHAfsBBwbsBQAJ/wECAv8BAAH/DwQCAAHsBf8B7AgAAewBBwH7AQcB+wEH |
||||
AewKAAYGAQcBBgEHAQYDBwEAAf8PBAMABewKAAXsCwAHBgEHAQYBBwEGAQcBBgEAEP8wAAFCAU0BPgcA |
||||
AT4DAAEoAwABQAMAATADAAEBAQABAQUAAYABARYAA/8BAAT/BAABgAEBAYABAQQAAYABAQGAAQEEAAGA |
||||
AQEBgAEBBAABgAEBAYABAQQAAYABAQGAAQEEAAGAAQEBgAEBBAABgAEBAYABAQQAAYABAQGAAQEEAAGA |
||||
AQEBgAEBBAABgAEBAYABAQQAAYABAQGAAQEEAAGAAQEBgAEBBAABgAEBAYABAQQAAv8BgAEBBAAE/wQA |
||||
Av8BwAEBAv8BwAEBAeABAAHAAQEC/wHAAQEBwAEAAcABAQL/AcABAQHAAQABwAEBAv8BwAEBAYABAAHA |
||||
AQEB/AEBAcABAQGDAsABAQH4AQABwAEBAgABwAEBAZgBAAHAAQECAAHAAQECAAHAAQECAAHAAQEBmAEA |
||||
AcABAQGAAQABwAEBAfgBAAHAAQEBgAEAAcABAQH4AQABwAEBAYABAQHAAQEB/AEBAcABAQHAAX8BwAEB |
||||
Av8BwAELAeAB/wHAAQMC/wHAAQcC/wHAAQcC/wHAAQ8C/wHAAQ8E/wIABP8BwAE/AgAE/wHAAT8CAAHg |
||||
AQABgAEBAQABPwIAAcACAAEBAQABPwIAAcACAAEBBAABgAIAAQEEAAGAAgABAQcAAQEHAAEBBwABAQQA |
||||
AYACAAEBBAABgAIAAQEBwAMAAYABAQEAAQMBwAMAAcABfwGAAf8BwAMAAeAB/wHBAf8BwAMABv8L |
||||
</value> |
||||
</data> |
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
<value> |
||||
AAABAAEAICAEAAAAAADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAA |
||||
AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP// |
||||
AAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
||||
QAAAAAAwAAAAAAAAAAAABMGZEAADiIgAAAAAAAAAAEzBmZEAP7u4AgAAAAAAAATMQZmZEIu7uAogAAAA |
||||
AAB0xAGZmZEIu7gKogAHiIiIgED/GZmZEIuACqoAB/j4+PIP//GZmZEID/KqAAf//4+CIP//GZmZEP// |
||||
KgAH//j48qIP84GZmZEP//IAB////4KqID+4GZmZEP9MAAf///jyqqD7u4GZmZEEzAAH////jyqg+7u4 |
||||
GZmRDMxAB/////jyoPu7gPGZkQzEAAf///+P/yD//w+PGZEMQAAH//////jzMzP4+PERBAAAB/////// |
||||
j4+Pj4+Pj4AAAAf///////j4+Pj4+PiAAAAH////////j4+Pj4+PgAAAB///////+P/4+Pj4+IAAAAf/ |
||||
////////j/+Pj4+AAAAH///////////4+Pj4gAAAB////////////4+Pj4AAAAf///////////j4+PiA |
||||
AAAH//////////+Pj4+PgAAABEREREREREREREREREQAAAREREREREREREREREREAAAERERERERERERE |
||||
RERERAAABEREREREREREREREREQAAAAAAAAAAAAAAAAAAAAAAAD/////////////////8Hwf/+A4D//A |
||||
EAf/gAADgAAAAYAAAAGAAAABgAAAAYAAAAGAAAABgAAAAYAAAAGAAAADgAAAB4AAAA+AAAAPgAAAD4AA |
||||
AA+AAAAPgAAAD4AAAA+AAAAPgAAAD4AAAA+AAAAPgAAAD4AAAA+AAAAP/////w== |
||||
</value> |
||||
</data> |
||||
</root> |
||||
@ -1,111 +0,0 @@
@@ -1,111 +0,0 @@
|
||||
namespace DockSample |
||||
{ |
||||
partial class DummyTaskList |
||||
{ |
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null; |
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing) |
||||
{ |
||||
if (disposing && (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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DummyTaskList)); |
||||
this.listView1 = new System.Windows.Forms.ListView(); |
||||
this.columnHeader1 = new System.Windows.Forms.ColumnHeader(); |
||||
this.columnHeader2 = new System.Windows.Forms.ColumnHeader(); |
||||
this.columnHeader3 = new System.Windows.Forms.ColumnHeader(); |
||||
this.columnHeader4 = new System.Windows.Forms.ColumnHeader(); |
||||
this.columnHeader5 = new System.Windows.Forms.ColumnHeader(); |
||||
this.SuspendLayout(); |
||||
//
|
||||
// listView1
|
||||
//
|
||||
this.listView1.AllowColumnReorder = true; |
||||
this.listView1.AutoArrange = false; |
||||
this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { |
||||
this.columnHeader1, |
||||
this.columnHeader2, |
||||
this.columnHeader3, |
||||
this.columnHeader4, |
||||
this.columnHeader5}); |
||||
this.listView1.Dock = System.Windows.Forms.DockStyle.Fill; |
||||
this.listView1.FullRowSelect = true; |
||||
this.listView1.HideSelection = false; |
||||
this.listView1.Location = new System.Drawing.Point(0, 3); |
||||
this.listView1.MultiSelect = false; |
||||
this.listView1.Name = "listView1"; |
||||
this.listView1.Size = new System.Drawing.Size(337, 370); |
||||
this.listView1.TabIndex = 0; |
||||
this.listView1.UseCompatibleStateImageBehavior = false; |
||||
this.listView1.View = System.Windows.Forms.View.Details; |
||||
//
|
||||
// columnHeader1
|
||||
//
|
||||
this.columnHeader1.Text = "!"; |
||||
this.columnHeader1.Width = 16; |
||||
//
|
||||
// columnHeader2
|
||||
//
|
||||
this.columnHeader2.Text = ""; |
||||
this.columnHeader2.Width = 16; |
||||
//
|
||||
// columnHeader3
|
||||
//
|
||||
this.columnHeader3.Text = "Description"; |
||||
this.columnHeader3.Width = 300; |
||||
//
|
||||
// columnHeader4
|
||||
//
|
||||
this.columnHeader4.Text = "File"; |
||||
this.columnHeader4.Width = 150; |
||||
//
|
||||
// columnHeader5
|
||||
//
|
||||
this.columnHeader5.Text = "Line"; |
||||
//
|
||||
// DummyTaskList
|
||||
//
|
||||
this.ClientSize = new System.Drawing.Size(337, 376); |
||||
this.Controls.Add(this.listView1); |
||||
this.DockAreas = ((WeifenLuo.WinFormsUI.Docking.DockAreas)(((((WeifenLuo.WinFormsUI.Docking.DockAreas.Float | WeifenLuo.WinFormsUI.Docking.DockAreas.DockLeft) |
||||
| WeifenLuo.WinFormsUI.Docking.DockAreas.DockRight) |
||||
| WeifenLuo.WinFormsUI.Docking.DockAreas.DockTop) |
||||
| WeifenLuo.WinFormsUI.Docking.DockAreas.DockBottom))); |
||||
this.HideOnClose = true; |
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
||||
this.Name = "DummyTaskList"; |
||||
this.Padding = new System.Windows.Forms.Padding(0, 3, 0, 3); |
||||
this.ShowHint = WeifenLuo.WinFormsUI.Docking.DockState.DockTopAutoHide; |
||||
this.TabText = "Task List"; |
||||
this.Text = "Task List"; |
||||
this.ResumeLayout(false); |
||||
|
||||
} |
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.ListView listView1; |
||||
private System.Windows.Forms.ColumnHeader columnHeader1; |
||||
private System.Windows.Forms.ColumnHeader columnHeader2; |
||||
private System.Windows.Forms.ColumnHeader columnHeader3; |
||||
private System.Windows.Forms.ColumnHeader columnHeader4; |
||||
private System.Windows.Forms.ColumnHeader columnHeader5; |
||||
} |
||||
} |
||||
@ -1,19 +0,0 @@
@@ -1,19 +0,0 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.ComponentModel; |
||||
using System.Data; |
||||
using System.Drawing; |
||||
using System.Text; |
||||
using System.Windows.Forms; |
||||
using WeifenLuo.WinFormsUI.Docking; |
||||
|
||||
namespace DockSample |
||||
{ |
||||
public partial class DummyTaskList : ToolWindow |
||||
{ |
||||
public DummyTaskList() |
||||
{ |
||||
InitializeComponent(); |
||||
} |
||||
} |
||||
} |
||||
@ -1,138 +0,0 @@
@@ -1,138 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<root> |
||||
<!-- |
||||
Microsoft ResX Schema |
||||
|
||||
Version 2.0 |
||||
|
||||
The primary goals of this format is to allow a simple XML format |
||||
that is mostly human readable. The generation and parsing of the |
||||
various data types are done through the TypeConverter classes |
||||
associated with the data types. |
||||
|
||||
Example: |
||||
|
||||
... ado.net/XML headers & schema ... |
||||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
||||
<resheader name="version">2.0</resheader> |
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
||||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
||||
</data> |
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
||||
<comment>This is a comment</comment> |
||||
</data> |
||||
|
||||
There are any number of "resheader" rows that contain simple |
||||
name/value pairs. |
||||
|
||||
Each data row contains a name, and value. The row also contains a |
||||
type or mimetype. Type corresponds to a .NET class that support |
||||
text/value conversion through the TypeConverter architecture. |
||||
Classes that don't support this are serialized and stored with the |
||||
mimetype set. |
||||
|
||||
The mimetype is used for serialized objects, and tells the |
||||
ResXResourceReader how to depersist the object. This is currently not |
||||
extensible. For a given mimetype the value must be set accordingly: |
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format |
||||
that the ResXResourceWriter will generate, however the reader can |
||||
read any of the formats listed below. |
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64 |
||||
value : The object must be serialized with |
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
||||
: and then encoded with base64 encoding. |
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64 |
||||
value : The object must be serialized with |
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
||||
: and then encoded with base64 encoding. |
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
||||
value : The object must be serialized into a byte array |
||||
: using a System.ComponentModel.TypeConverter |
||||
: and then encoded with base64 encoding. |
||||
--> |
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
||||
<xsd:element name="root" msdata:IsDataSet="true"> |
||||
<xsd:complexType> |
||||
<xsd:choice maxOccurs="unbounded"> |
||||
<xsd:element name="metadata"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
||||
<xsd:attribute name="type" type="xsd:string" /> |
||||
<xsd:attribute name="mimetype" type="xsd:string" /> |
||||
<xsd:attribute ref="xml:space" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="assembly"> |
||||
<xsd:complexType> |
||||
<xsd:attribute name="alias" type="xsd:string" /> |
||||
<xsd:attribute name="name" type="xsd:string" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="data"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
||||
<xsd:attribute ref="xml:space" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="resheader"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
</xsd:choice> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
</xsd:schema> |
||||
<resheader name="resmimetype"> |
||||
<value>text/microsoft-resx</value> |
||||
</resheader> |
||||
<resheader name="version"> |
||||
<value>2.0</value> |
||||
</resheader> |
||||
<resheader name="reader"> |
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
</resheader> |
||||
<resheader name="writer"> |
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
</resheader> |
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
<value> |
||||
AAABAAEAICAQAAAAAADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAAAIAAAAAAAAAAAAAEAAAABAA |
||||
AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP// |
||||
AAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
||||
AAAAAAAAAAAAAAAAd/////////////8AAAAAAHf/////////////AAAAAAB3////iIj//////wAAAAAA |
||||
d////4iI//////8AAAAAAHf///8RiIj/////AAAAAAB3////EYiI/////wAAAAAAd///ERERiIj///8A |
||||
AAAAAHf//xEREYiI////AAAAAAB3/xER/xERiP///wAAAAAAd/8REf8REYj///8AAAAAAHf//////xF3 |
||||
iP//AAAAAAB3//////8Rd4j//wAAAAAAd////////xGIiP8AAAAAAHf///////8RiIj/AAAAAAB3//// |
||||
/////xGI/wAAAAAAd/////////8RiP8AAAAAAHf//////////xH/AAAAAAB3//////////8R/wAAAAAA |
||||
d/////////////8AAAAAAHf/////////////AAAAAAB3//8AAAAAAAD//wAAAAAAd///AAAAAAAA//8A |
||||
AAAAAAB3dwD/iIiIAHd3AAAAAAAAd3cA/4iIiAB3dwAAAAAAAAAAAHd3d3cAAAAAAAAAAAAAAAB3d3d3 |
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////wAAD/8AAA/8AAAD/AA |
||||
AA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AA |
||||
AA/wAAAP8AAAD/AAAA/wAAAP8AAAD/wAAD/8AAA///AP///wD////////////w== |
||||
</value> |
||||
</data> |
||||
</root> |
||||
@ -1,96 +0,0 @@
@@ -1,96 +0,0 @@
|
||||
namespace DockSample |
||||
{ |
||||
partial class DummyToolbox |
||||
{ |
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null; |
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing) |
||||
{ |
||||
if (disposing && (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() |
||||
{ |
||||
this.components = new System.ComponentModel.Container(); |
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DummyToolbox)); |
||||
this.label2 = new System.Windows.Forms.Label(); |
||||
this.imageList = new System.Windows.Forms.ImageList(this.components); |
||||
this.label1 = new System.Windows.Forms.Label(); |
||||
this.SuspendLayout(); |
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) |
||||
| System.Windows.Forms.AnchorStyles.Right))); |
||||
this.label2.BackColor = System.Drawing.SystemColors.ControlLightLight; |
||||
this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
||||
this.label2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; |
||||
this.label2.ImageIndex = 0; |
||||
this.label2.ImageList = this.imageList; |
||||
this.label2.Location = new System.Drawing.Point(2, 26); |
||||
this.label2.Name = "label2"; |
||||
this.label2.Size = new System.Drawing.Size(215, 19); |
||||
this.label2.TabIndex = 5; |
||||
this.label2.Text = " Pointer"; |
||||
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; |
||||
//
|
||||
// imageList
|
||||
//
|
||||
this.imageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream"))); |
||||
this.imageList.TransparentColor = System.Drawing.Color.Transparent; |
||||
this.imageList.Images.SetKeyName(0, "Mouse.bmp"); |
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) |
||||
| System.Windows.Forms.AnchorStyles.Right))); |
||||
this.label1.FlatStyle = System.Windows.Forms.FlatStyle.Popup; |
||||
this.label1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; |
||||
this.label1.Location = new System.Drawing.Point(2, 7); |
||||
this.label1.Name = "label1"; |
||||
this.label1.Size = new System.Drawing.Size(215, 19); |
||||
this.label1.TabIndex = 6; |
||||
this.label1.Text = "General"; |
||||
//
|
||||
// DummyToolbox
|
||||
//
|
||||
this.ClientSize = new System.Drawing.Size(221, 365); |
||||
this.Controls.Add(this.label1); |
||||
this.Controls.Add(this.label2); |
||||
this.DockAreas = ((WeifenLuo.WinFormsUI.Docking.DockAreas)(((((WeifenLuo.WinFormsUI.Docking.DockAreas.Float | WeifenLuo.WinFormsUI.Docking.DockAreas.DockLeft) |
||||
| WeifenLuo.WinFormsUI.Docking.DockAreas.DockRight) |
||||
| WeifenLuo.WinFormsUI.Docking.DockAreas.DockTop) |
||||
| WeifenLuo.WinFormsUI.Docking.DockAreas.DockBottom))); |
||||
this.HideOnClose = true; |
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
||||
this.Name = "DummyToolbox"; |
||||
this.Padding = new System.Windows.Forms.Padding(0, 2, 0, 2); |
||||
this.ShowHint = WeifenLuo.WinFormsUI.Docking.DockState.DockLeftAutoHide; |
||||
this.TabText = "Toolbox"; |
||||
this.Text = "Toolbox"; |
||||
this.ResumeLayout(false); |
||||
|
||||
} |
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label label2; |
||||
private System.Windows.Forms.ImageList imageList; |
||||
private System.Windows.Forms.Label label1; |
||||
} |
||||
} |
||||
@ -1,19 +0,0 @@
@@ -1,19 +0,0 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.ComponentModel; |
||||
using System.Data; |
||||
using System.Drawing; |
||||
using System.Text; |
||||
using System.Windows.Forms; |
||||
using WeifenLuo.WinFormsUI.Docking; |
||||
|
||||
namespace DockSample |
||||
{ |
||||
public partial class DummyToolbox : ToolWindow |
||||
{ |
||||
public DummyToolbox() |
||||
{ |
||||
InitializeComponent(); |
||||
} |
||||
} |
||||
} |
||||
@ -1,181 +0,0 @@
@@ -1,181 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<root> |
||||
<!-- |
||||
Microsoft ResX Schema |
||||
|
||||
Version 2.0 |
||||
|
||||
The primary goals of this format is to allow a simple XML format |
||||
that is mostly human readable. The generation and parsing of the |
||||
various data types are done through the TypeConverter classes |
||||
associated with the data types. |
||||
|
||||
Example: |
||||
|
||||
... ado.net/XML headers & schema ... |
||||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
||||
<resheader name="version">2.0</resheader> |
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
||||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
||||
</data> |
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
||||
<comment>This is a comment</comment> |
||||
</data> |
||||
|
||||
There are any number of "resheader" rows that contain simple |
||||
name/value pairs. |
||||
|
||||
Each data row contains a name, and value. The row also contains a |
||||
type or mimetype. Type corresponds to a .NET class that support |
||||
text/value conversion through the TypeConverter architecture. |
||||
Classes that don't support this are serialized and stored with the |
||||
mimetype set. |
||||
|
||||
The mimetype is used for serialized objects, and tells the |
||||
ResXResourceReader how to depersist the object. This is currently not |
||||
extensible. For a given mimetype the value must be set accordingly: |
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format |
||||
that the ResXResourceWriter will generate, however the reader can |
||||
read any of the formats listed below. |
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64 |
||||
value : The object must be serialized with |
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
||||
: and then encoded with base64 encoding. |
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64 |
||||
value : The object must be serialized with |
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
||||
: and then encoded with base64 encoding. |
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
||||
value : The object must be serialized into a byte array |
||||
: using a System.ComponentModel.TypeConverter |
||||
: and then encoded with base64 encoding. |
||||
--> |
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
||||
<xsd:element name="root" msdata:IsDataSet="true"> |
||||
<xsd:complexType> |
||||
<xsd:choice maxOccurs="unbounded"> |
||||
<xsd:element name="metadata"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
||||
<xsd:attribute name="type" type="xsd:string" /> |
||||
<xsd:attribute name="mimetype" type="xsd:string" /> |
||||
<xsd:attribute ref="xml:space" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="assembly"> |
||||
<xsd:complexType> |
||||
<xsd:attribute name="alias" type="xsd:string" /> |
||||
<xsd:attribute name="name" type="xsd:string" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="data"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
||||
<xsd:attribute ref="xml:space" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
<xsd:element name="resheader"> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
</xsd:choice> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
</xsd:schema> |
||||
<resheader name="resmimetype"> |
||||
<value>text/microsoft-resx</value> |
||||
</resheader> |
||||
<resheader name="version"> |
||||
<value>2.0</value> |
||||
</resheader> |
||||
<resheader name="reader"> |
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
</resheader> |
||||
<resheader name="writer"> |
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
</resheader> |
||||
<metadata name="imageList.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
||||
<value>17, 17</value> |
||||
</metadata> |
||||
<data name="imageList.ImageStream" mimetype="application/x-microsoft.net.object.binary.base64"> |
||||
<value> |
||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj0yLjAuMC4w |
||||
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 |
||||
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACa |
||||
BwAAAk1TRnQBSQFMAwEBAAEFAQABBAEAARABAAEQAQAE/wEJAQAI/wFCAU0BNgEEBgABNgEEAgABKAMA |
||||
AUADAAEQAwABAQEAAQgGAAEEGAABgAIAAYADAAKAAQABgAMAAYABAAGAAQACgAIAA8ABAAHAAdwBwAEA |
||||
AfABygGmAQABMwUAATMBAAEzAQABMwEAAjMCAAMWAQADHAEAAyIBAAMpAQADVQEAA00BAANCAQADOQEA |
||||
AYABfAH/AQACUAH/AQABkwEAAdYBAAH/AewBzAEAAcYB1gHvAQAB1gLnAQABkAGpAa0CAAH/ATMDAAFm |
||||
AwABmQMAAcwCAAEzAwACMwIAATMBZgIAATMBmQIAATMBzAIAATMB/wIAAWYDAAFmATMCAAJmAgABZgGZ |
||||
AgABZgHMAgABZgH/AgABmQMAAZkBMwIAAZkBZgIAApkCAAGZAcwCAAGZAf8CAAHMAwABzAEzAgABzAFm |
||||
AgABzAGZAgACzAIAAcwB/wIAAf8BZgIAAf8BmQIAAf8BzAEAATMB/wIAAf8BAAEzAQABMwEAAWYBAAEz |
||||
AQABmQEAATMBAAHMAQABMwEAAf8BAAH/ATMCAAMzAQACMwFmAQACMwGZAQACMwHMAQACMwH/AQABMwFm |
||||
AgABMwFmATMBAAEzAmYBAAEzAWYBmQEAATMBZgHMAQABMwFmAf8BAAEzAZkCAAEzAZkBMwEAATMBmQFm |
||||
AQABMwKZAQABMwGZAcwBAAEzAZkB/wEAATMBzAIAATMBzAEzAQABMwHMAWYBAAEzAcwBmQEAATMCzAEA |
||||
ATMBzAH/AQABMwH/ATMBAAEzAf8BZgEAATMB/wGZAQABMwH/AcwBAAEzAv8BAAFmAwABZgEAATMBAAFm |
||||
AQABZgEAAWYBAAGZAQABZgEAAcwBAAFmAQAB/wEAAWYBMwIAAWYCMwEAAWYBMwFmAQABZgEzAZkBAAFm |
||||
ATMBzAEAAWYBMwH/AQACZgIAAmYBMwEAA2YBAAJmAZkBAAJmAcwBAAFmAZkCAAFmAZkBMwEAAWYBmQFm |
||||
AQABZgKZAQABZgGZAcwBAAFmAZkB/wEAAWYBzAIAAWYBzAEzAQABZgHMAZkBAAFmAswBAAFmAcwB/wEA |
||||
AWYB/wIAAWYB/wEzAQABZgH/AZkBAAFmAf8BzAEAAcwBAAH/AQAB/wEAAcwBAAKZAgABmQEzAZkBAAGZ |
||||
AQABmQEAAZkBAAHMAQABmQMAAZkCMwEAAZkBAAFmAQABmQEzAcwBAAGZAQAB/wEAAZkBZgIAAZkBZgEz |
||||
AQABmQEzAWYBAAGZAWYBmQEAAZkBZgHMAQABmQEzAf8BAAKZATMBAAKZAWYBAAOZAQACmQHMAQACmQH/ |
||||
AQABmQHMAgABmQHMATMBAAFmAcwBZgEAAZkBzAGZAQABmQLMAQABmQHMAf8BAAGZAf8CAAGZAf8BMwEA |
||||
AZkBzAFmAQABmQH/AZkBAAGZAf8BzAEAAZkC/wEAAcwDAAGZAQABMwEAAcwBAAFmAQABzAEAAZkBAAHM |
||||
AQABzAEAAZkBMwIAAcwCMwEAAcwBMwFmAQABzAEzAZkBAAHMATMBzAEAAcwBMwH/AQABzAFmAgABzAFm |
||||
ATMBAAGZAmYBAAHMAWYBmQEAAcwBZgHMAQABmQFmAf8BAAHMAZkCAAHMAZkBMwEAAcwBmQFmAQABzAKZ |
||||
AQABzAGZAcwBAAHMAZkB/wEAAswCAALMATMBAALMAWYBAALMAZkBAAPMAQACzAH/AQABzAH/AgABzAH/ |
||||
ATMBAAGZAf8BZgEAAcwB/wGZAQABzAH/AcwBAAHMAv8BAAHMAQABMwEAAf8BAAFmAQAB/wEAAZkBAAHM |
||||
ATMCAAH/AjMBAAH/ATMBZgEAAf8BMwGZAQAB/wEzAcwBAAH/ATMB/wEAAf8BZgIAAf8BZgEzAQABzAJm |
||||
AQAB/wFmAZkBAAH/AWYBzAEAAcwBZgH/AQAB/wGZAgAB/wGZATMBAAH/AZkBZgEAAf8CmQEAAf8BmQHM |
||||
AQAB/wGZAf8BAAH/AcwCAAH/AcwBMwEAAf8BzAFmAQAB/wHMAZkBAAH/AswBAAH/AcwB/wEAAv8BMwEA |
||||
AcwB/wFmAQAC/wGZAQAC/wHMAQACZgH/AQABZgH/AWYBAAFmAv8BAAH/AmYBAAH/AWYB/wEAAv8BZgEA |
||||
ASEBAAGlAQADXwEAA3cBAAOGAQADlgEAA8sBAAOyAQAD1wEAA90BAAPjAQAD6gEAA/EBAAP4AQAB8AH7 |
||||
Af8BAAGkAqABAAOAAwAB/wIAAf8DAAL/AQAB/wMAAf8BAAH/AQAC/wIAA/8BABD/MAAJ/wEHAbwF/zAA |
||||
Cf8BAAEUBf8wAAj/AewBDgH3Bf8wAAT/Ae8BBwL/AQABEAb/MAAE/wHsAREBvAHqAQABBwb/MAAE/wHs |
||||
AQABDwIAB/8wAAT/AewGAAFtBP8wAAT/AewFAAHqBf8wAAT/AewEAAHqBv8wAAT/AewDAAFtB/8wAAT/ |
||||
AewCAAHrCP8wAAT/AewBAAHrAfQI/zAABP8B7AHrAfMJ/zAABP8B8wH0Cv8wABD/MAABQgFNAT4HAAE+ |
||||
AwABKAMAAUADAAEQAwABAQEAAQEFAAGAFwAD/4EACw== |
||||
</value> |
||||
</data> |
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
<value> |
||||
AAABAAEAICAQAAAAAADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAAAIAAAAAAAAAAAAAEAAAABAA |
||||
AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP// |
||||
AAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
||||
AAAAAAAAAAAAAAAAEQAAAAAAAACIAAAAAAAAABEAAAAAAAAAiAAAAAAAAAAAEQAAAAAAiAAAAAAAAAAA |
||||
ABEAAAAAAIgAAAAAAAAAAAAAEQAAAIgAAAAAAAAAAAAAABEAAACIAAAAAAAAAAAAAAAAEQCIAAAAAAAA |
||||
AAAAAAAAABEAiAAAAAAAAAAAAAAAAAAAiAAAAAAAAAAAAAAAAAAAAIgAAAAAAAAAAAAAAAAAAIgAEQAA |
||||
AAAAAAAAAAAAAACIABEAAAAAAAAAAAAAAACIAAAAEQAAAAAzAAAAAAAAiAAAABEAAAAAMwAAAAAAAAAA |
||||
AAAAEQAAADMzAAAAAAAAAAAAABEAAAAzMwAAAAAAAAAAAAAAADMzAAAAAAAAAAAAAAAAAAAzMwAAAAAA |
||||
AAAAAAAAAAAzMzMAAAAAAAAAAAAAAAAAMzMzAAAAAAAAAAAAAAAAADMzMwAAAAAAAAAAAAAAAAAzMzMA |
||||
AAAAAAAAAAAAADMzAAAAAAAAAAAAAAAAAAAzMwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//////////8P/8P/D//D/wP/A/8D/ |
||||
wP/wPwP/8D8D//wMD//8DA///wA///8AP///wP///8D///8AP8//AD/PAAwPAwAMDwMAPwAAAD8AADw/ |
||||
wAM8P8AD/D/AD/w/wA/wPwAP8D8AD//wAD//8AA///wD///8A////////////w== |
||||
</value> |
||||
</data> |
||||
</root> |
||||
|
Before Width: | Height: | Size: 370 B |
|
Before Width: | Height: | Size: 370 B |
|
Before Width: | Height: | Size: 318 B |