~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to data/templates/file/VB/VB.Web.WebControl.xft

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<Template author="Siegfried Pammer" version="1.0">
 
3
 
 
4
        <Config
 
5
                name        = "${res:Templates.File.WebControl.Name}"
 
6
                icon        = "VBNet.File.NewClass"
 
7
                category    = "VB"
 
8
                subcategory = "ASP.NET"
 
9
                defaultname = "WebControl${Number}"
 
10
                language    = "VBNET"
 
11
        />
 
12
 
 
13
        <Description>${res:Templates.File.WebControl.Description}</Description>
 
14
        <!--
 
15
        Special new file templates:
 
16
                ${StandardNamespace}        -> Standardnamespace of the current project or FileNameWithoutExtension
 
17
                ${FullName}                 -> Full generated path name
 
18
                ${FileName}                 -> File name with extension
 
19
                ${FileNameWithoutExtension} -> File name without extension
 
20
                ${Extension}                -> Extension in the form ".vb"
 
21
                ${Path}                     -> Full path of the file
 
22
         -->
 
23
        <Files>
 
24
                <File name="${Path}/${FileNameWithoutExtension}.vb" DependentUpon="${FileName}" language="VBNET"><![CDATA[${StandardHeader.VBNET}
 
25
Imports System.Web
 
26
Imports System.Web.SessionState
 
27
Imports System.Web.UI
 
28
Imports System.Web.UI.WebControls
 
29
Imports System.Web.UI.HtmlControls
 
30
 
 
31
Namespace ${StandardNamespace}
 
32
        ''' <summary>
 
33
        ''' Description of ${ClassName}
 
34
        ''' </summary>
 
35
        Public Class ${ClassName}
 
36
                Inherits Control
 
37
                '<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
38
                #Region "Data"
 
39
                #End Region
 
40
                '<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
41
                #Region "Constructor"
 
42
 
 
43
                Public Sub New()
 
44
                        AddHandler Init, New EventHandler(AddressOf OnInit)
 
45
                        AddHandler Load, New EventHandler(AddressOf OnLoad)
 
46
                End Sub
 
47
 
 
48
                #End Region
 
49
                '<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
50
                #Region "OnInit"
 
51
 
 
52
                Private Overloads Sub OnInit(sender As Object, e As EventArgs)
 
53
                End Sub
 
54
 
 
55
                #End Region
 
56
                '<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
57
                #Region "OnLoad"
 
58
 
 
59
                Private Overloads Sub OnLoad(sender As Object, e As EventArgs)
 
60
                End Sub
 
61
 
 
62
                #End Region
 
63
                '<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
64
                #Region "Properties"
 
65
                #End Region
 
66
                '<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
67
                #Region "Render"
 
68
 
 
69
                Protected Overrides Sub Render(Writer As HtmlTextWriter)
 
70
                        Writer.Write("${ClassName} Control")
 
71
                End Sub
 
72
                #End Region
 
73
        End Class
 
74
End Namespace]]></File>
 
75
 
 
76
        </Files>
 
77
 
 
78
        <AdditionalOptions/>
 
79
</Template>