Skip to content

Commit e43f3d4

Browse files
committed
Added APP
1 parent 05eb16e commit e43f3d4

37 files changed

+1327
-0
lines changed

App.config

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<configSections>
4+
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
5+
<section name="Timer2._0.MySettings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
6+
</sectionGroup>
7+
</configSections>
8+
<startup>
9+
10+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/></startup>
11+
<userSettings>
12+
<Timer2._0.MySettings>
13+
<setting name="CloseWhenZero" serializeAs="String">
14+
<value>True</value>
15+
</setting>
16+
<setting name="BackgroundColor" serializeAs="String">
17+
<value>#C8060E22</value>
18+
</setting>
19+
<setting name="ForegroundColor" serializeAs="String">
20+
<value>#FFFFFFFF</value>
21+
</setting>
22+
<setting name="FontFamily" serializeAs="String">
23+
<value>Arial</value>
24+
</setting>
25+
<setting name="FontWeight" serializeAs="String">
26+
<value>Black</value>
27+
</setting>
28+
<setting name="FontStyle" serializeAs="String">
29+
<value>Normal</value>
30+
</setting>
31+
<setting name="AllwaysVisible" serializeAs="String">
32+
<value>True</value>
33+
</setting>
34+
</Timer2._0.MySettings>
35+
</userSettings>
36+
</configuration>

Application.xaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Application x:Class="Application"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:local="clr-namespace:Timer2._0"
5+
StartupUri="SetTime.xaml">
6+
<Application.Resources>
7+
8+
</Application.Resources>
9+
</Application>

Application.xaml.vb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Class Application
2+
3+
' Application-level events, such as Startup, Exit, and DispatcherUnhandledException
4+
' can be handled in this file.
5+
6+
End Class
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.
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.
Binary file not shown.

My Project/AssemblyInfo.vb

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
Imports System
2+
Imports System.Reflection
3+
Imports System.Runtime.InteropServices
4+
Imports System.Globalization
5+
Imports System.Resources
6+
Imports System.Windows
7+
8+
' General Information about an assembly is controlled through the following
9+
' set of attributes. Change these attribute values to modify the information
10+
' associated with an assembly.
11+
12+
' Review the values of the assembly attributes
13+
14+
<Assembly: AssemblyTitle("Timer2._0")>
15+
<Assembly: AssemblyDescription("")>
16+
<Assembly: AssemblyCompany("")>
17+
<Assembly: AssemblyProduct("Timer2._0")>
18+
<Assembly: AssemblyCopyright("Copyright © 2016")>
19+
<Assembly: AssemblyTrademark("")>
20+
<Assembly: ComVisible(false)>
21+
22+
'In order to begin building localizable applications, set
23+
'<UICulture>CultureYouAreCodingWith</UICulture> in your .vbproj file
24+
'inside a <PropertyGroup>. For example, if you are using US english
25+
'in your source files, set the <UICulture> to "en-US". Then uncomment the
26+
'NeutralResourceLanguage attribute below. Update the "en-US" in the line
27+
'below to match the UICulture setting in the project file.
28+
29+
'<Assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)>
30+
31+
32+
'The ThemeInfo attribute describes where any theme specific and generic resource dictionaries can be found.
33+
'1st parameter: where theme specific resource dictionaries are located
34+
'(used if a resource is not found in the page,
35+
' or application resource dictionaries)
36+
37+
'2nd parameter: where the generic resource dictionary is located
38+
'(used if a resource is not found in the page,
39+
'app, and any theme specific resource dictionaries)
40+
<Assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)>
41+
42+
43+
44+
'The following GUID is for the ID of the typelib if this project is exposed to COM
45+
<Assembly: Guid("e6d9895a-8903-4e42-b34d-5ffdb0d4e17d")>
46+
47+
' Version information for an assembly consists of the following four values:
48+
'
49+
' Major Version
50+
' Minor Version
51+
' Build Number
52+
' Revision
53+
'
54+
' You can specify all the values or you can default the Build and Revision Numbers
55+
' by using the '*' as shown below:
56+
' <Assembly: AssemblyVersion("1.0.*")>
57+
58+
<Assembly: AssemblyVersion("1.0.0.0")>
59+
<Assembly: AssemblyFileVersion("1.0.0.0")>
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
#If _MyType <> "Empty" Then
2+
3+
Namespace My
4+
''' <summary>
5+
''' Module used to define the properties that are available in the My Namespace for WPF
6+
''' </summary>
7+
''' <remarks></remarks>
8+
<Global.Microsoft.VisualBasic.HideModuleName()> _
9+
Module MyWpfExtension
10+
Private s_Computer As New ThreadSafeObjectProvider(Of Global.Microsoft.VisualBasic.Devices.Computer)
11+
Private s_User As New ThreadSafeObjectProvider(Of Global.Microsoft.VisualBasic.ApplicationServices.User)
12+
Private s_Windows As New ThreadSafeObjectProvider(Of MyWindows)
13+
Private s_Log As New ThreadSafeObjectProvider(Of Global.Microsoft.VisualBasic.Logging.Log)
14+
''' <summary>
15+
''' Returns the application object for the running application
16+
''' </summary>
17+
<Global.System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")> _
18+
Friend ReadOnly Property Application() As Application
19+
Get
20+
Return CType(Global.System.Windows.Application.Current, Application)
21+
End Get
22+
End Property
23+
''' <summary>
24+
''' Returns information about the host computer.
25+
''' </summary>
26+
<Global.System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")> _
27+
Friend ReadOnly Property Computer() As Global.Microsoft.VisualBasic.Devices.Computer
28+
Get
29+
Return s_Computer.GetInstance()
30+
End Get
31+
End Property
32+
''' <summary>
33+
''' Returns information for the current user. If you wish to run the application with the current
34+
''' Windows user credentials, call My.User.InitializeWithWindowsUser().
35+
''' </summary>
36+
<Global.System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")> _
37+
Friend ReadOnly Property User() As Global.Microsoft.VisualBasic.ApplicationServices.User
38+
Get
39+
Return s_User.GetInstance()
40+
End Get
41+
End Property
42+
''' <summary>
43+
''' Returns the application log. The listeners can be configured by the application's configuration file.
44+
''' </summary>
45+
<Global.System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")> _
46+
Friend ReadOnly Property Log() As Global.Microsoft.VisualBasic.Logging.Log
47+
Get
48+
Return s_Log.GetInstance()
49+
End Get
50+
End Property
51+
52+
''' <summary>
53+
''' Returns the collection of Windows defined in the project.
54+
''' </summary>
55+
<Global.System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")> _
56+
Friend ReadOnly Property Windows() As MyWindows
57+
<Global.System.Diagnostics.DebuggerHidden()> _
58+
Get
59+
Return s_Windows.GetInstance()
60+
End Get
61+
End Property
62+
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Never)> _
63+
<Global.Microsoft.VisualBasic.MyGroupCollection("System.Windows.Window", "Create__Instance__", "Dispose__Instance__", "My.MyWpfExtenstionModule.Windows")> _
64+
Friend NotInheritable Class MyWindows
65+
<Global.System.Diagnostics.DebuggerHidden()> _
66+
Private Shared Function Create__Instance__(Of T As {New, Global.System.Windows.Window})(ByVal Instance As T) As T
67+
If Instance Is Nothing Then
68+
If s_WindowBeingCreated IsNot Nothing Then
69+
If s_WindowBeingCreated.ContainsKey(GetType(T)) = True Then
70+
Throw New Global.System.InvalidOperationException("The window cannot be accessed via My.Windows from the Window constructor.")
71+
End If
72+
Else
73+
s_WindowBeingCreated = New Global.System.Collections.Hashtable()
74+
End If
75+
s_WindowBeingCreated.Add(GetType(T), Nothing)
76+
Return New T()
77+
s_WindowBeingCreated.Remove(GetType(T))
78+
Else
79+
Return Instance
80+
End If
81+
End Function
82+
<Global.System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1822:MarkMembersAsStatic")> _
83+
<Global.System.Diagnostics.DebuggerHidden()> _
84+
Private Sub Dispose__Instance__(Of T As Global.System.Windows.Window)(ByRef instance As T)
85+
instance = Nothing
86+
End Sub
87+
<Global.System.Diagnostics.DebuggerHidden()> _
88+
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Never)> _
89+
Public Sub New()
90+
MyBase.New()
91+
End Sub
92+
<Global.System.ThreadStatic()> Private Shared s_WindowBeingCreated As Global.System.Collections.Hashtable
93+
<Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> Public Overrides Function Equals(ByVal o As Object) As Boolean
94+
Return MyBase.Equals(o)
95+
End Function
96+
<Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> Public Overrides Function GetHashCode() As Integer
97+
Return MyBase.GetHashCode
98+
End Function
99+
<Global.System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1822:MarkMembersAsStatic")> _
100+
<Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
101+
Friend Overloads Function [GetType]() As Global.System.Type
102+
Return GetType(MyWindows)
103+
End Function
104+
<Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> Public Overrides Function ToString() As String
105+
Return MyBase.ToString
106+
End Function
107+
End Class
108+
End Module
109+
End Namespace
110+
Partial Class Application
111+
Inherits Global.System.Windows.Application
112+
<Global.System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")> _
113+
<Global.System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1822:MarkMembersAsStatic")> _
114+
Friend ReadOnly Property Info() As Global.Microsoft.VisualBasic.ApplicationServices.AssemblyInfo
115+
<Global.System.Diagnostics.DebuggerHidden()> _
116+
Get
117+
Return New Global.Microsoft.VisualBasic.ApplicationServices.AssemblyInfo(Global.System.Reflection.Assembly.GetExecutingAssembly())
118+
End Get
119+
End Property
120+
End Class
121+
#End If

My Project/Resources.Designer.vb

Lines changed: 63 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)