|
|
|
@ -1,22 +1,11 @@ |
|
|
|
<?xml version="1.0"?> |
|
|
|
<?xml version="1.0"?> |
|
|
|
<Template author="Mike Krueger" version="1.0"> |
|
|
|
<Template author="TFSThiago1112" version="1.0"> |
|
|
|
|
|
|
|
<Config name="${res:Templates.File.WindowsForm.Name}" icon="VBNet.File.Form" category="VB" subcategory="${res:Templates.File.Categories.WindowsApplications}" defaultname="Form${Number}.vb" language="VB"/> |
|
|
|
<Config |
|
|
|
|
|
|
|
name = "${res:Templates.File.WindowsForm.Name}" |
|
|
|
|
|
|
|
icon = "VBNet.File.Form" |
|
|
|
|
|
|
|
category = "VB" |
|
|
|
|
|
|
|
subcategory = "${res:Templates.File.Categories.WindowsApplications}" |
|
|
|
|
|
|
|
defaultname = "Form${Number}.vb" |
|
|
|
|
|
|
|
language = "VB" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Description>${res:Templates.File.WindowsForm.Description}</Description> |
|
|
|
<Description>${res:Templates.File.WindowsForm.Description}</Description> |
|
|
|
|
|
|
|
|
|
|
|
<References> |
|
|
|
<References> |
|
|
|
<Reference include="System.Drawing" /> |
|
|
|
<Reference include="System.Drawing" /> |
|
|
|
<Reference include="System.Windows.Forms" /> |
|
|
|
<Reference include="System.Windows.Forms" /> |
|
|
|
</References> |
|
|
|
</References> |
|
|
|
|
|
|
|
|
|
|
|
<!-- |
|
|
|
<!-- |
|
|
|
Special new file templates: |
|
|
|
Special new file templates: |
|
|
|
${StandardNamespace} -> Standardnamespace of the current project or FileNameWithoutExtension |
|
|
|
${StandardNamespace} -> Standardnamespace of the current project or FileNameWithoutExtension |
|
|
|
@ -27,56 +16,44 @@ |
|
|
|
${Path} -> Full path of the file |
|
|
|
${Path} -> Full path of the file |
|
|
|
--> |
|
|
|
--> |
|
|
|
<Files> |
|
|
|
<Files> |
|
|
|
|
|
|
|
|
|
|
|
<File name="${Path}/${FileNameWithoutExtension}.Designer.vb" DependentUpon="${FileName}" language="VBNET"><![CDATA[${StandardHeader.VBNET} |
|
|
|
<File name="${Path}/${FileNameWithoutExtension}.Designer.vb" DependentUpon="${FileName}" language="VBNET"><![CDATA[${StandardHeader.VBNET} |
|
|
|
|
|
|
|
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ |
|
|
|
Partial Class ${ClassName} |
|
|
|
Partial Class ${ClassName} |
|
|
|
Inherits System.Windows.Forms.Form |
|
|
|
Inherits System.Windows.Forms.Form |
|
|
|
|
|
|
|
|
|
|
|
''' <summary> |
|
|
|
'Form overrides dispose to clean up the component list. |
|
|
|
''' Designer variable used to keep track of non-visual components. |
|
|
|
<System.Diagnostics.DebuggerNonUserCode()> _ |
|
|
|
''' </summary> |
|
|
|
|
|
|
|
Private components As System.ComponentModel.IContainer |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
''' <summary> |
|
|
|
|
|
|
|
''' Disposes resources used by the form. |
|
|
|
|
|
|
|
''' </summary> |
|
|
|
|
|
|
|
''' <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
|
|
|
|
|
|
|
Protected Overrides Sub Dispose(ByVal disposing As Boolean) |
|
|
|
Protected Overrides Sub Dispose(ByVal disposing As Boolean) |
|
|
|
If disposing Then |
|
|
|
Try |
|
|
|
If components IsNot Nothing Then |
|
|
|
If disposing AndAlso components IsNot Nothing Then |
|
|
|
components.Dispose() |
|
|
|
components.Dispose() |
|
|
|
End If |
|
|
|
End If |
|
|
|
End If |
|
|
|
Finally |
|
|
|
MyBase.Dispose(disposing) |
|
|
|
MyBase.Dispose(disposing) |
|
|
|
|
|
|
|
End Try |
|
|
|
End Sub |
|
|
|
End Sub |
|
|
|
|
|
|
|
|
|
|
|
''' <summary> |
|
|
|
'Required by the Windows Form Designer |
|
|
|
''' This method is required for Windows Forms designer support. |
|
|
|
Private components As System.ComponentModel.IContainer |
|
|
|
''' 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. |
|
|
|
'NOTE: The following procedure is required by the Windows Form Designer |
|
|
|
''' </summary> |
|
|
|
'It can be modified using the Windows Form Designer. |
|
|
|
|
|
|
|
'Do not modify it using the code editor. |
|
|
|
|
|
|
|
<System.Diagnostics.DebuggerStepThrough()> _ |
|
|
|
Private Sub InitializeComponent() |
|
|
|
Private Sub InitializeComponent() |
|
|
|
' |
|
|
|
components = New System.ComponentModel.Container |
|
|
|
'${ClassName} |
|
|
|
|
|
|
|
' |
|
|
|
|
|
|
|
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font |
|
|
|
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font |
|
|
|
Me.Name = "${ClassName}" |
|
|
|
|
|
|
|
Me.Text = "${ClassName}" |
|
|
|
Me.Text = "${ClassName}" |
|
|
|
End Sub |
|
|
|
End Sub |
|
|
|
End Class |
|
|
|
End Class |
|
|
|
]]></File> |
|
|
|
]]> |
|
|
|
|
|
|
|
</File> |
|
|
|
<File name="${FullName}" language="VBNET"><![CDATA[${StandardHeader.VBNET} |
|
|
|
<File name="${FullName}" language="VBNET"><![CDATA[${StandardHeader.VBNET} |
|
|
|
Public Partial Class ${ClassName} |
|
|
|
Public Class ${ClassName} |
|
|
|
Public Sub New() |
|
|
|
|
|
|
|
' The Me.InitializeComponent call is required for Windows Forms designer support. |
|
|
|
|
|
|
|
Me.InitializeComponent() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
' |
|
|
|
|
|
|
|
' TODO : Add constructor code after InitializeComponents |
|
|
|
|
|
|
|
' |
|
|
|
|
|
|
|
End Sub |
|
|
|
|
|
|
|
End Class |
|
|
|
End Class |
|
|
|
]]></File> |
|
|
|
]]></File> |
|
|
|
</Files> |
|
|
|
</Files> |
|
|
|
|
|
|
|
|
|
|
|
<AdditionalOptions/> |
|
|
|
<AdditionalOptions/> |
|
|
|
</Template> |
|
|
|
</Template> |
|
|
|
|