84 changed files with 1586 additions and 926 deletions
After Width: | Height: | Size: 488 B |
After Width: | Height: | Size: 629 B |
After Width: | Height: | Size: 650 B |
After Width: | Height: | Size: 611 B |
@ -1,3 +1,3 @@
@@ -1,3 +1,3 @@
|
||||
resasm BitmapResources.res |
||||
move BitmapResources.resources ..\..\SharpDevelop\Src\Main\StartUp\Project\Resources\BitmapResources.resources |
||||
move BitmapResources.resources ..\..\..\..\Src\Main\StartUp\Project\Resources\BitmapResources.resources |
||||
pause |
@ -0,0 +1,120 @@
@@ -0,0 +1,120 @@
|
||||
Namespace My |
||||
|
||||
<Global.Microsoft.VisualBasic.HideModuleName()> |
||||
Module MyWpfExtension |
||||
<System.ThreadStatic()> Private m_computer As MyComputer |
||||
<System.ThreadStatic()> Private m_user As MyUser |
||||
<System.ThreadStatic()> Private m_windows As MyWindows |
||||
<System.ThreadStatic()> Private m_log As MyLog |
||||
|
||||
''' <summary> |
||||
''' Returns the application object for the running application |
||||
''' </summary> |
||||
Friend ReadOnly Property Application() As MyApplication |
||||
Get |
||||
Return CType(Global.System.Windows.Application.Current, MyApplication) |
||||
End Get |
||||
End Property |
||||
|
||||
''' <summary> |
||||
''' Returns information about the host computer. |
||||
''' </summary> |
||||
Friend ReadOnly Property Computer() As Global.Microsoft.VisualBasic.Devices.Computer |
||||
Get |
||||
If m_computer Is Nothing Then |
||||
m_computer = New MyComputer() |
||||
End If |
||||
Return m_computer |
||||
End Get |
||||
End Property |
||||
|
||||
''' <summary> |
||||
''' Returns information for the current user. If you wish to run the application with the current |
||||
''' Windows user credentials, call My.User.InitializeWithWindowsUser(). |
||||
''' </summary> |
||||
Friend ReadOnly Property User() As Global.Microsoft.VisualBasic.ApplicationServices.User |
||||
Get |
||||
If m_user Is Nothing Then |
||||
m_user = New MyUser() |
||||
End If |
||||
Return m_user |
||||
End Get |
||||
End Property |
||||
|
||||
''' <summary> |
||||
''' Returns the application log. The listeners can be configured by the application's configuration file. |
||||
''' </summary> |
||||
Friend ReadOnly Property Log() As Global.Microsoft.VisualBasic.Logging.Log |
||||
Get |
||||
If m_log Is Nothing Then |
||||
m_log = New MyLog() |
||||
End If |
||||
Return m_log |
||||
End Get |
||||
End Property |
||||
|
||||
''' <summary> |
||||
''' Returns the collection of Windows defined in the project. |
||||
''' </summary> |
||||
Friend ReadOnly Property Windows() As MyWindows |
||||
<Global.System.Diagnostics.DebuggerHidden()> |
||||
Get |
||||
If m_windows Is Nothing Then |
||||
m_windows = New MyWindows() |
||||
End If |
||||
Return m_windows |
||||
End Get |
||||
End Property |
||||
|
||||
<Global.Microsoft.VisualBasic.MyGroupCollection("System.Windows.Window", "Create__Instance__", "Dispose__Instance__", "My.MyWpfExtenstionModule.Windows")> |
||||
Friend NotInheritable Class MyWindows |
||||
<Global.System.Diagnostics.DebuggerHidden()> |
||||
Private Shared Function Create__Instance__(Of T As {New, Global.System.Windows.Window})(ByVal Instance As T) As T |
||||
If Instance Is Nothing Then |
||||
If m_WindowBeingCreated IsNot Nothing Then |
||||
If m_WindowBeingCreated.ContainsKey(GetType(T)) = True Then |
||||
Throw New Global.System.InvalidOperationException("The window cannot be accessed via My.Windows from the Window constructor.") |
||||
End If |
||||
Else |
||||
m_WindowBeingCreated = New Global.System.Collections.Hashtable() |
||||
End If |
||||
m_WindowBeingCreated.Add(GetType(T), Nothing) |
||||
Return New T() |
||||
m_WindowBeingCreated.Remove(GetType(T)) |
||||
Else |
||||
Return Instance |
||||
End If |
||||
End Function |
||||
|
||||
<Global.System.Diagnostics.DebuggerHidden()> |
||||
Private Sub Dispose__Instance__(Of T As Global.System.Windows.Window)(ByRef instance As T) |
||||
instance = Nothing |
||||
End Sub |
||||
|
||||
<Global.System.ThreadStatic()> Private Shared m_WindowBeingCreated As Global.System.Collections.Hashtable |
||||
End Class |
||||
End Module |
||||
End Namespace |
||||
|
||||
Partial Class MyComputer |
||||
Inherits Global.Microsoft.VisualBasic.Devices.Computer |
||||
End Class |
||||
|
||||
Partial Class MyUser |
||||
Inherits Global.Microsoft.VisualBasic.ApplicationServices.User |
||||
End Class |
||||
|
||||
Partial Class MyLog |
||||
Inherits Global.Microsoft.VisualBasic.Logging.Log |
||||
End Class |
||||
|
||||
Partial Class MyApplication |
||||
Inherits Global.System.Windows.Application |
||||
|
||||
Friend ReadOnly Property Info() As Global.Microsoft.VisualBasic.ApplicationServices.AssemblyInfo |
||||
<Global.System.Diagnostics.DebuggerHidden()> |
||||
Get |
||||
Return New Global.Microsoft.VisualBasic.ApplicationServices.AssemblyInfo(Global.System.Reflection.Assembly.GetExecutingAssembly()) |
||||
End Get |
||||
End Property |
||||
End Class |
@ -0,0 +1,99 @@
@@ -0,0 +1,99 @@
|
||||
<?xml version="1.0"?> |
||||
<Template originator = "Siegfried Oleg Pammer" created = "26/10/2010"> |
||||
|
||||
<!-- Template Header --> |
||||
<TemplateConfiguration> |
||||
<Name>${res:Templates.Project.WinFXApplication.Name}</Name> |
||||
<Category>VBNet</Category> |
||||
<Subcategory>WPF</Subcategory> |
||||
<Icon>VBNet.Project.Form</Icon> |
||||
<Description>${res:Templates.Project.WinFXApplication.Description}</Description> |
||||
<SupportedTargetFrameworks>v3.0;v3.5Client</SupportedTargetFrameworks> |
||||
</TemplateConfiguration> |
||||
|
||||
<!-- Actions --> |
||||
<Actions> |
||||
<Open filename = "Window1.xaml"/> |
||||
</Actions> |
||||
|
||||
<Project language = "VBNet"> |
||||
<ProjectItems> |
||||
<Reference Include="System" /> |
||||
<Reference Include="System.Data" /> |
||||
<Reference Include="System.Xml" /> |
||||
<Reference Include="PresentationCore"> |
||||
<RequiredTargetFramework>3.0</RequiredTargetFramework> |
||||
</Reference> |
||||
<Reference Include="PresentationFramework"> |
||||
<RequiredTargetFramework>3.0</RequiredTargetFramework> |
||||
</Reference> |
||||
<Reference Include="WindowsBase"> |
||||
<RequiredTargetFramework>3.0</RequiredTargetFramework> |
||||
</Reference> |
||||
</ProjectItems> |
||||
|
||||
<PropertyGroup> |
||||
<OutputType>WinExe</OutputType> |
||||
<AppDesignerFolder>Properties</AppDesignerFolder> |
||||
<MyType>Custom</MyType> |
||||
</PropertyGroup> |
||||
|
||||
<Files> |
||||
<File name="App.xaml" buildAction="ApplicationDefinition" language="XML"><![CDATA[<Application x:Class="App" |
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
StartupUri="Window1.xaml"> |
||||
<Application.Resources> |
||||
|
||||
</Application.Resources> |
||||
</Application>]]></File> |
||||
<File name="App.xaml.vb" SubType="Code" DependentUpon="App.xaml"><![CDATA[${StandardHeader.VBNET} |
||||
Imports System |
||||
Imports System.Windows |
||||
Imports System.Data |
||||
Imports System.Xml |
||||
Imports System.Configuration |
||||
|
||||
''' <summary> |
||||
''' Interaction logic for App.xaml |
||||
''' </summary> |
||||
Public Partial Class App |
||||
Inherits Application |
||||
|
||||
End Class]]></File> |
||||
<File name="Window1.xaml" buildAction="Page" language="XML"><![CDATA[<Window x:Class="Window1" |
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
Title="${StandardNamespace}" Height="300" Width="300" |
||||
> |
||||
<Grid> |
||||
|
||||
</Grid> |
||||
</Window>]]></File> |
||||
<File name="Window1.xaml.vb" SubType="Code" DependentUpon="Window1.xaml"><![CDATA[${StandardHeader.VBNET} |
||||
Imports System |
||||
Imports System.Collections.Generic |
||||
Imports System.Text |
||||
Imports System.Windows |
||||
Imports System.Windows.Controls |
||||
Imports System.Windows.Data |
||||
Imports System.Windows.Documents |
||||
Imports System.Windows.Input |
||||
Imports System.Windows.Media |
||||
|
||||
''' <summary> |
||||
''' Interaction logic for Window1.xaml |
||||
''' </summary> |
||||
Public Partial Class Window1 |
||||
Inherits Window |
||||
|
||||
Public Sub New() |
||||
InitializeComponent() |
||||
End Sub |
||||
End Class]]></File> |
||||
<File name="Properties\WPFAssemblyInfo.vb" src="WPFAssemblyInfo.vb" /> |
||||
<File name="Properties\AssemblyInfo.vb" src="DefaultAssemblyInfo.vb" /> |
||||
<File name="Properties\MyExtensions\MyWpfExtension.vb" src="MyWpfExtension.vb" /> |
||||
</Files> |
||||
</Project> |
||||
</Template> |
@ -0,0 +1,25 @@
@@ -0,0 +1,25 @@
|
||||
#Region "Imports directives" |
||||
|
||||
Imports System.Resources |
||||
Imports System.Windows |
||||
|
||||
#End Region |
||||
|
||||
|
||||
|
||||
' In order to begin building localizable applications, set |
||||
' <UICulture>CultureYouAreCodingWith</UICulture> in your .vbproj file |
||||
' inside a <PropertyGroup>. For example, if you are using US english |
||||
' in your source files, set the <UICulture> to en-US. Then uncomment |
||||
' the NeutralResourceLanguage attribute below. Update the "en-US" in |
||||
' the line below to match the UICulture setting in the project file. |
||||
|
||||
'<Assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)> |
||||
|
||||
' themeDictionaryLocation = where theme specific resource dictionaries are located |
||||
' (used if a resource is not found in the page, |
||||
' or application resource dictionaries) |
||||
' genericDictionaryLocation = where the generic resource dictionary is located |
||||
' (used if a resource is not found in the page, |
||||
' app, or any theme specific resource dictionaries) |
||||
<Assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)> |
@ -0,0 +1,103 @@
@@ -0,0 +1,103 @@
|
||||
<?xml version="1.0"?> |
||||
<Template originator = "Siegfried Oleg Pammer" created = "26/10/2010"> |
||||
|
||||
<!-- Template Header --> |
||||
<TemplateConfiguration> |
||||
<Name>${res:Templates.Project.WinFXNavigationApplication.Name}</Name> |
||||
<Category>VBNet</Category> |
||||
<Subcategory>WPF</Subcategory> |
||||
<Icon>VBNet.Project.Form</Icon> |
||||
<Description>${res:Templates.Project.WinFXNavigationApplication.Description}</Description> |
||||
<SupportedTargetFrameworks>v3.0;v3.5Client</SupportedTargetFrameworks> |
||||
</TemplateConfiguration> |
||||
|
||||
<!-- Actions --> |
||||
<Actions> |
||||
<Open filename = "Page1.xaml"/> |
||||
</Actions> |
||||
|
||||
<Project language = "VBNet"> |
||||
<ProjectItems> |
||||
<Reference Include="System" /> |
||||
<Reference Include="System.Data" /> |
||||
<Reference Include="System.Xml" /> |
||||
<Reference Include="PresentationCore"> |
||||
<RequiredTargetFramework>3.0</RequiredTargetFramework> |
||||
</Reference> |
||||
<Reference Include="PresentationFramework"> |
||||
<RequiredTargetFramework>3.0</RequiredTargetFramework> |
||||
</Reference> |
||||
<Reference Include="WindowsBase"> |
||||
<RequiredTargetFramework>3.0</RequiredTargetFramework> |
||||
</Reference> |
||||
</ProjectItems> |
||||
|
||||
<PropertyGroup> |
||||
<OutputType>WinExe</OutputType> |
||||
<AppDesignerFolder>Properties</AppDesignerFolder> |
||||
<MyType>Custom</MyType> |
||||
</PropertyGroup> |
||||
|
||||
<Files> |
||||
<File name="App.xaml" buildAction="ApplicationDefinition" language="XML"><![CDATA[<Application x:Class="App" |
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
StartupUri="Page1.xaml" |
||||
> |
||||
<Application.Resources> |
||||
|
||||
</Application.Resources> |
||||
</Application>]]></File> |
||||
<File name="App.xaml.vb" SubType="Code" DependentUpon="App.xaml"><![CDATA[${StandardHeader.VBNET} |
||||
Imports System |
||||
Imports System.Windows |
||||
Imports System.Data |
||||
Imports System.Xml |
||||
Imports System.Configuration |
||||
|
||||
''' <summary> |
||||
''' Interaction logic for App.xaml |
||||
''' </summary> |
||||
Public Partial Class App |
||||
Inherits Application |
||||
|
||||
End Class]]></File> |
||||
<File name="Page1.xaml" language="XML" buildAction="Page"><![CDATA[<Page x:Class="Page1" |
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
Title="Page1" |
||||
> |
||||
<Grid> |
||||
|
||||
</Grid> |
||||
</Page>]]></File> |
||||
<File name="Page1.xaml.vb" language="VBNet" DependentUpon="Page1.xaml" SubType="Code"><![CDATA[${StandardHeader.VBNET} |
||||
Imports System |
||||
Imports System.Collections.Generic |
||||
Imports System.Text |
||||
Imports System.Windows |
||||
Imports System.Windows.Controls |
||||
Imports System.Windows.Data |
||||
Imports System.Windows.Documents |
||||
Imports System.Windows.Input |
||||
Imports System.Windows.Media |
||||
Imports System.Windows.Media.Imaging |
||||
Imports System.Windows.Navigation |
||||
Imports System.Windows.Shapes |
||||
|
||||
''' <summary> |
||||
''' Interaction logic for Page1.xaml |
||||
''' </summary> |
||||
Public Partial Class Page1 |
||||
Inherits Page |
||||
|
||||
Public Sub New() |
||||
InitializeComponent() |
||||
End Sub |
||||
End Class]]></File> |
||||
<File name="Properties\AssemblyInfo.vb" src="DefaultAssemblyInfo.vb" /> |
||||
<File name="Properties\WPFAssemblyInfo.vb" src="WPFAssemblyInfo.vb" /> |
||||
<File name="Properties\MyExtensions\MyWpfExtension.vb" src="MyWpfExtension.vb" /> |
||||
</Files> |
||||
</Project> |
||||
</Template> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,17 +0,0 @@
@@ -1,17 +0,0 @@
|
||||
<?xml version='1.0'?> |
||||
<configuration> |
||||
<configSections> |
||||
<section name='microsoft.scripting' type='Microsoft.Scripting.Hosting.Configuration.Section, Microsoft.Scripting, Version=1.1.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35' requirePermission='false'/> |
||||
</configSections> |
||||
|
||||
<microsoft.scripting> |
||||
<languages> |
||||
<language names='IronPython;Python;py' extensions='.py' displayName='IronPython 2.7 Alpha 1' type='IronPython.Runtime.PythonContext, IronPython, Version=2.7.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35'/> |
||||
<language names='IronRuby;Ruby;rb' extensions='.rb' displayName='IronRuby' type='IronRuby.Runtime.RubyContext, IronRuby, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'/> |
||||
</languages> |
||||
|
||||
<options> |
||||
<set language='Ruby' option='LibraryPaths' value='..\lib\IronRuby;..\lib\ruby\site_ruby\1.8;..\lib\ruby\site_ruby;..\lib\ruby\1.8'/> |
||||
</options> |
||||
</microsoft.scripting> |
||||
</configuration> |
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue