You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
2.8 KiB
103 lines
2.8 KiB
<?xml version="1.0"?> |
|
<Template author="Mike Krueger" version="1.0"> |
|
|
|
<Config |
|
name = "${res:Templates.File.WindowsUserControl.Name}" |
|
icon = "C#.File.Form" |
|
category = "C#" |
|
subcategory = "${res:Templates.File.Categories.WindowsApplications}" |
|
defaultname = "UserControl${Number}.cs" |
|
language = "C#" |
|
/> |
|
|
|
<Description>${res:Templates.File.WindowsUserControl.Description}</Description> |
|
|
|
<References> |
|
<Reference include="System.Drawing" /> |
|
<Reference include="System.Windows.Forms" /> |
|
</References> |
|
|
|
<!-- |
|
Special new file templates: |
|
${StandardNamespace} -> Standardnamespace of the current project or FileNameWithoutExtension |
|
${FullName} -> Full generated path name |
|
${FileName} -> File name with extension |
|
${FileNameWithoutExtension} -> File name without extension |
|
${Extension} -> Extension in the form ".cs" |
|
${Path} -> Full path of the file |
|
--> |
|
<Files> |
|
<!-- Designer file must come first, so the design tab is shown correctly --> |
|
<File name="${Path}/${FileNameWithoutExtension}.Designer.cs" DependentUpon="${FileName}" language="C#"><![CDATA[${StandardHeader.C#} |
|
namespace ${StandardNamespace} |
|
{ |
|
partial class ${ClassName} |
|
{ |
|
/// <summary> |
|
/// Designer variable used to keep track of non-visual components. |
|
/// </summary> |
|
private System.ComponentModel.IContainer components = null; |
|
|
|
/// <summary> |
|
/// Disposes resources used by the control. |
|
/// </summary> |
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
|
protected override void Dispose(bool disposing) |
|
{ |
|
if (disposing) { |
|
if (components != null) { |
|
components.Dispose(); |
|
} |
|
} |
|
base.Dispose(disposing); |
|
} |
|
|
|
/// <summary> |
|
/// This method is required for Windows Forms designer support. |
|
/// Do not change the method contents inside the source code editor. The Forms designer might |
|
/// not be able to load this method if it was changed manually. |
|
/// </summary> |
|
private void InitializeComponent() |
|
{ |
|
// |
|
// ${ClassName} |
|
// |
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|
this.Name = "${ClassName}"; |
|
} |
|
} |
|
} |
|
]]></File> |
|
<File name="${FullName}" language="C#"><![CDATA[${StandardHeader.C#} |
|
using System; |
|
using System.ComponentModel; |
|
using System.Drawing; |
|
using System.Windows.Forms; |
|
|
|
namespace ${StandardNamespace} |
|
{ |
|
/// <summary> |
|
/// Description of ${ClassName}. |
|
/// </summary> |
|
public partial class ${ClassName} : UserControl |
|
{ |
|
public ${ClassName}() |
|
{ |
|
// |
|
// The InitializeComponent() call is required for Windows Forms designer support. |
|
// |
|
InitializeComponent(); |
|
|
|
// |
|
// TODO: Add constructor code after the InitializeComponent() call. |
|
// |
|
} |
|
} |
|
} |
|
]]></File> |
|
</Files> |
|
|
|
<AdditionalOptions/> |
|
</Template> |
|
|
|
|
|
|