2
<Template author="Daniel Grunwald" version="1.0">
5
name = "${res:Templates.File.WindowsForm.Name}"
8
defaultname = "Form${Number}.boo"
11
<Description>${res:Templates.File.WindowsForm.Description}</Description>
14
Special new file templates:
15
${StandardNamespace} -> Standardnamespace of the current project or FileNameWithoutExtension
16
${FullName} -> Full generated path name
17
${FileName} -> File name with extension
18
${FileNameWithoutExtension} -> File name without extension
19
${Extension} -> Extension in the form ".cs"
20
${Path} -> Full path of the file
21
${ClassName} -> Class name (generally FileNameWithoutExtension w/o 'bad' characters)
24
<!-- Designer file must come first, so the design tab is shown correctly -->
25
<File name="${Path}/${FileNameWithoutExtension}.Designer.boo" DependentUpon="${FileName}" language="Boo"><![CDATA[namespace ${StandardNamespace}
27
partial class ${ClassName}(System.Windows.Forms.Form):
28
private components as System.ComponentModel.IContainer = null
30
protected override def Dispose(disposing as bool) as void:
32
if components is not null:
36
// This method is required for Windows Forms designer support.
37
// Do not change the method contents inside the source code editor. The Forms designer might
38
// not be able to load this method if it was changed manually.
39
private def InitializeComponent():
41
self.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
42
self.Text = '${ClassName}'
43
self.Name = '${ClassName}'
46
<File name="${FullName}" language="Boo"><![CDATA[namespace ${StandardNamespace}
49
import System.Collections
51
import System.Windows.Forms
53
partial class ${ClassName}:
54
"""Description of ${ClassName}."""
55
public def constructor():
56
// The InitializeComponent() call is required for Windows Forms designer support.
58
// TODO: Add constructor code after the InitializeComponent() call.