|
|
|
@ -30,6 +30,9 @@ |
|
|
|
<Reference Include="System.Drawing" /> |
|
|
|
<Reference Include="System.Drawing" /> |
|
|
|
<Reference Include="System.Windows.Forms" /> |
|
|
|
<Reference Include="System.Windows.Forms" /> |
|
|
|
<Reference Include="System.Xml" /> |
|
|
|
<Reference Include="System.Xml" /> |
|
|
|
|
|
|
|
<Import Include="System" /> |
|
|
|
|
|
|
|
<Import Include="System.Collections" /> |
|
|
|
|
|
|
|
<Import Include="System.Windows.Forms" /> |
|
|
|
</ProjectItems> |
|
|
|
</ProjectItems> |
|
|
|
<Files> |
|
|
|
<Files> |
|
|
|
<File name="${ProjectName}.addin" copyToOutputDirectory="Always"><![CDATA[<AddIn name = "${ProjectName}" |
|
|
|
<File name="${ProjectName}.addin" copyToOutputDirectory="Always"><![CDATA[<AddIn name = "${ProjectName}" |
|
|
|
@ -85,34 +88,29 @@ Imports System |
|
|
|
Imports System.Windows.Forms |
|
|
|
Imports System.Windows.Forms |
|
|
|
Imports ICSharpCode.SharpDevelop.Gui.XmlForms |
|
|
|
Imports ICSharpCode.SharpDevelop.Gui.XmlForms |
|
|
|
|
|
|
|
|
|
|
|
Namespace ${ProjectName} |
|
|
|
Public Class MyUserControl |
|
|
|
Public Class MyUserControl |
|
|
|
|
|
|
|
Inherits BaseSharpDevelopUserControl |
|
|
|
Inherits BaseSharpDevelopUserControl |
|
|
|
Public Sub New |
|
|
|
Public Sub New |
|
|
|
SetupFromXmlStream(Me.GetType().Assembly.GetManifestResourceStream("test4.Resources.MyUserControl.xfrm")) |
|
|
|
SetupFromXmlStream(Me.GetType().Assembly.GetManifestResourceStream("${ProjectName}.Resources.MyUserControl.xfrm")) |
|
|
|
AddHandler (Me.Get(Of Button)("test")).Click, AddressOf ButtonClick |
|
|
|
AddHandler (Me.Get(Of Button)("test")).Click, AddressOf ButtonClick |
|
|
|
End Sub |
|
|
|
End Sub |
|
|
|
|
|
|
|
|
|
|
|
Sub ButtonClick(sender As Object, e As EventArgs) |
|
|
|
Sub ButtonClick(sender As Object, e As EventArgs) |
|
|
|
System.Windows.Forms.MessageBox.Show("The button was clicked!") |
|
|
|
System.Windows.Forms.MessageBox.Show("The button was clicked!") |
|
|
|
End Sub |
|
|
|
End Sub |
|
|
|
End Class |
|
|
|
End Class |
|
|
|
End Namespace |
|
|
|
|
|
|
|
]]> |
|
|
|
]]> |
|
|
|
</File> |
|
|
|
</File> |
|
|
|
<File name="Src/TestPad.vb"> |
|
|
|
<File name="Src/TestPad.vb"> |
|
|
|
<![CDATA[${StandardHeader.VBNET} |
|
|
|
<![CDATA[${StandardHeader.VBNET} |
|
|
|
|
|
|
|
|
|
|
|
Imports System |
|
|
|
|
|
|
|
Imports System.Windows.Forms |
|
|
|
|
|
|
|
Imports ICSharpCode.Core |
|
|
|
Imports ICSharpCode.Core |
|
|
|
Imports ICSharpCode.SharpDevelop.Gui |
|
|
|
Imports ICSharpCode.SharpDevelop.Gui |
|
|
|
|
|
|
|
|
|
|
|
Namespace ${ProjectName} |
|
|
|
''' <summary> |
|
|
|
''' <summary> |
|
|
|
''' Description of the pad content |
|
|
|
''' Description of the pad content |
|
|
|
''' </summary> |
|
|
|
''' </summary> |
|
|
|
Public Class TestPad |
|
|
|
Public Class TestPad |
|
|
|
|
|
|
|
Inherits AbstractPadContent |
|
|
|
Inherits AbstractPadContent |
|
|
|
Private ctl As MyUserControl |
|
|
|
Private ctl As MyUserControl |
|
|
|
|
|
|
|
|
|
|
|
@ -146,8 +144,7 @@ Namespace ${ProjectName} |
|
|
|
Public Overrides Sub Dispose() |
|
|
|
Public Overrides Sub Dispose() |
|
|
|
ctl.Dispose() |
|
|
|
ctl.Dispose() |
|
|
|
End Sub |
|
|
|
End Sub |
|
|
|
End Class |
|
|
|
End Class |
|
|
|
End Namespace |
|
|
|
|
|
|
|
]]></File> |
|
|
|
]]></File> |
|
|
|
<File name="Configuration/AssemblyInfo.vb"> |
|
|
|
<File name="Configuration/AssemblyInfo.vb"> |
|
|
|
<![CDATA[Imports System.Reflection |
|
|
|
<![CDATA[Imports System.Reflection |
|
|
|
|