Skip to content

Commit d726afe

Browse files
committed
Add project files.
1 parent 878d11d commit d726afe

21 files changed

+2455
-0
lines changed

CompactGUI.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.26730.16
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "CompactGUI", "WindowsApp1\CompactGUI.vbproj", "{179404BE-643E-452C-B689-0C4DE78FF801}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{179404BE-643E-452C-B689-0C4DE78FF801}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{179404BE-643E-452C-B689-0C4DE78FF801}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{179404BE-643E-452C-B689-0C4DE78FF801}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{179404BE-643E-452C-B689-0C4DE78FF801}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {C7126FEA-3E26-4F84-8EC8-39CC096DA1E2}
24+
EndGlobalSection
25+
EndGlobal

WindowsApp1/App.config

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<configSections>
4+
5+
</configSections>
6+
<startup>
7+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7"/>
8+
</startup>
9+
10+
<System.Windows.Forms.ApplicationConfigurationSection>
11+
<add key="DpiAwareness" value="PerMonitorV2" />
12+
<add key="EnableWindowsFormsHighDpiAutoResizing" value="false" />
13+
</System.Windows.Forms.ApplicationConfigurationSection>
14+
15+
</configuration>

WindowsApp1/ApplicationEvents.vb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Namespace My
2+
' The following events are available for MyApplication:
3+
' Startup: Raised when the application starts, before the startup form is created.
4+
' Shutdown: Raised after all application forms are closed. This event is not raised if the application terminates abnormally.
5+
' UnhandledException: Raised if the application encounters an unhandled exception.
6+
' StartupNextInstance: Raised when launching a single-instance application and the application is already active.
7+
' NetworkAvailabilityChanged: Raised when the network connection is connected or disconnected.
8+
Partial Friend Class MyApplication
9+
Private Sub AppStart(ByVal sender As Object,
10+
ByVal e As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs) Handles Me.Startup
11+
AddHandler AppDomain.CurrentDomain.AssemblyResolve, AddressOf ResolveAssemblies
12+
End Sub
13+
14+
Private Function ResolveAssemblies(sender As Object, e As System.ResolveEventArgs) As Reflection.Assembly
15+
Dim desiredAssembly = New Reflection.AssemblyName(e.Name)
16+
17+
If desiredAssembly.Name = "Ookii.Dialogs" Then
18+
Return Reflection.Assembly.Load(My.Resources.Ookii_Dialogs)
19+
Else
20+
Return Nothing
21+
End If
22+
End Function
23+
End Class
24+
End Namespace

0 commit comments

Comments
 (0)