Browse Source

Fixed SD2-1196: Compact Framework support for VB

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2113 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 19 years ago
parent
commit
422578071a
  1. 2
      data/templates/project/CSharp/CompactFormsProject.xpt
  2. 107
      data/templates/project/VBNet/CompactFormsProject.xpt
  3. 3
      data/templates/project/VBNet/FormsProject.xpt
  4. 1
      src/Main/Base/Project/Resources/NewProjectDialog.xfrm
  5. 2
      src/Main/Base/Project/Src/Gui/Dialogs/NewProjectDialog.cs

2
data/templates/project/CSharp/CompactFormsProject.xpt

@ -106,7 +106,7 @@ namespace ${StandardNamespace} @@ -106,7 +106,7 @@ namespace ${StandardNamespace}
//
// MainForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.ClientSize = new System.Drawing.Size(238, 295);
this.Text = "${ProjectName}";
this.Name = "MainForm";

107
data/templates/project/VBNet/CompactFormsProject.xpt

@ -0,0 +1,107 @@ @@ -0,0 +1,107 @@
<?xml version="1.0"?>
<Template originator = "Daniel Grunwald">
<!-- Template Header -->
<TemplateConfiguration>
<Name>${res:Templates.Project.WindowsApplication.Name}</Name>
<Category>VBNet</Category>
<Subcategory>Compact Framework</Subcategory>
<Icon>VBNet.Project.Form</Icon>
<Description>${res:Templates.Project.WindowsApplication.Description}</Description>
</TemplateConfiguration>
<!-- Actions -->
<Actions>
<Open filename = "MainForm.vb"/>
</Actions>
<!-- Template Content -->
<Project language="VBNet">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<PlatformFamilyName>PocketPC</PlatformFamilyName>
<PlatformID>WinCE</PlatformID>
<TargetFrameworkVersion>CF 2.0</TargetFrameworkVersion>
<StartupObject>${StandardNamespace}.MainForm</StartupObject>
</PropertyGroup>
<Imports clear="true">
<Import Project="$(SharpDevelopBinPath)\SharpDevelop.Build.VisualBasic.targets" />
</Imports>
<ProjectItems>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.WindowsCE.Forms.dll" />
<Import Include="Microsoft.VisualBasic" />
<Import Include="System" />
<Import Include="System.Collections" />
<Import Include="System.Collections.Generic" />
<Import Include="System.Drawing" />
<Import Include="System.Diagnostics" />
<Import Include="System.Windows.Forms" />
</ProjectItems>
<Files>
<File name="MainForm.vb">
<![CDATA[${StandardHeader.VBNET}
Public Partial Class MainForm
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
]]></File>
<File name="MainForm.Designer.vb" DependentUpon="MainForm.vb">
<![CDATA[${StandardHeader.VBNET}
Partial Class MainForm
Inherits System.Windows.Forms.Form
''' <summary>
''' Designer variable used to keep track of non-visual components.
''' </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)
If disposing Then
If components IsNot Nothing Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
''' <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 Sub InitializeComponent()
'
'MainForm
'
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi
Me.ClientSize = New System.Drawing.Size(238, 295)
Me.Name = "MainForm"
Me.Text = "${ProjectName}"
End Sub
End Class
]]></File>
<File name="AssemblyInfo.vb" src="DefaultAssemblyInfo.vb"/>
</Files>
</Project>
</Template>

3
data/templates/project/VBNet/FormsProject.xpt

@ -25,9 +25,10 @@ @@ -25,9 +25,10 @@
<ProjectItems>
<Reference Include="System" />
<Reference Include="System.Deployment" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Import Include="Microsoft.VisualBasic" />
<Import Include="System" />

1
src/Main/Base/Project/Resources/NewProjectDialog.xfrm

@ -202,7 +202,6 @@ @@ -202,7 +202,6 @@
<ImageIndex value="-1" />
<Dock value="Fill" />
<TabIndex value="1" />
<Scrollable value="False" />
<Location value="{X=0,Y=23}" />
<SelectedImageIndex value="-1" />
<Size value="{Width=174, Height=224}" />

2
src/Main/Base/Project/Src/Gui/Dialogs/NewProjectDialog.cs

@ -26,8 +26,6 @@ namespace ICSharpCode.SharpDevelop.Project.Dialogs @@ -26,8 +26,6 @@ namespace ICSharpCode.SharpDevelop.Project.Dialogs
/// </summary>
public class NewProjectDialog : BaseSharpDevelopForm
{
protected Container components = new System.ComponentModel.Container();
protected List<TemplateItem> alltemplates = new List<TemplateItem>();
protected List<Category> categories = new List<Category>();

Loading…
Cancel
Save