Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Thick-Common
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
Thick-Common
Commits
0667c868
Commit
0667c868
authored
Mar 25, 2020
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AD盒模拟器,只有右键点击 window的状态栏 才能退出
parent
a0214ae9
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
3 deletions
+51
-3
App.xaml
Project.FLY.FlyADBase/FLYAD7_Simulation_Wpf/App.xaml
+1
-1
App.xaml.cs
Project.FLY.FlyADBase/FLYAD7_Simulation_Wpf/App.xaml.cs
+30
-0
FLYAD7_Simulation_Wpf.csproj
...ADBase/FLYAD7_Simulation_Wpf/FLYAD7_Simulation_Wpf.csproj
+4
-0
FlyADBase.sln
Project.FLY.FlyADBase/FlyADBase.sln
+16
-2
No files found.
Project.FLY.FlyADBase/FLYAD7_Simulation_Wpf/App.xaml
View file @
0667c868
<Application x:Class="FLYAD7_Simulation_Wpf.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml"
>
>
<Application.Resources>
</Application.Resources>
...
...
Project.FLY.FlyADBase/FLYAD7_Simulation_Wpf/App.xaml.cs
View file @
0667c868
...
...
@@ -12,5 +12,35 @@ namespace FLYAD7_Simulation_Wpf
/// </summary>
public
partial
class
App
:
Application
{
FLY
.
AppHelper
.
AppJustOne
appjustone
;
FLY
.
AppHelper
.
WindowNotifyIconHelper
notifyiconhelper
;
public
App
()
{
appjustone
=
new
FLY
.
AppHelper
.
AppJustOne
(
this
);
AppDomain
.
CurrentDomain
.
UnhandledException
+=
(
s
,
e
)
=>
{
string
err
=
e
.
ExceptionObject
.
ToString
();
var
logger
=
NLog
.
LogManager
.
GetLogger
(
"app"
);
logger
.
Fatal
(
err
);
MessageBox
.
Show
(
"程序出现异常,请把下面信息拍照发给厂家"
+
Environment
.
NewLine
+
err
,
"异常,联系厂家"
,
MessageBoxButton
.
OK
,
MessageBoxImage
.
Error
);
};
this
.
Startup
+=
(
s
,
e
)
=>
{
this
.
MainWindow
=
new
MainWindow
();
Misc
.
Ver
ver
=
new
Misc
.
Ver
();
ver
.
SrcType
=
this
.
GetType
();
this
.
MainWindow
.
Title
=
ver
.
ToString
();
notifyiconhelper
=
new
FLY
.
AppHelper
.
WindowNotifyIconHelper
(
this
.
MainWindow
,
this
.
MainWindow
.
Title
);
this
.
MainWindow
.
Show
();
};
}
}
}
Project.FLY.FlyADBase/FLYAD7_Simulation_Wpf/FLYAD7_Simulation_Wpf.csproj
View file @
0667c868
...
...
@@ -140,6 +140,10 @@
<AppDesigner
Include=
"Properties\"
/>
</ItemGroup>
<ItemGroup>
<ProjectReference
Include=
"..\..\Project.FLY.AppHelper\FLY.AppHelper\FLY.AppHelper.csproj"
>
<Project>
{9c46d98f-6500-490b-9e56-c89dfffa05f8}
</Project>
<Name>
FLY.AppHelper
</Name>
</ProjectReference>
<ProjectReference
Include=
"..\..\Project.FLY.FObjSys\FObjSys\FObjBase.csproj"
>
<Project>
{ABFE87D4-B692-4AE9-A8C0-1F470B8ACBB8}
</Project>
<Name>
FObjBase
</Name>
...
...
Project.FLY.FlyADBase/FlyADBase.sln
View file @
0667c868
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio
15
VisualStudioVersion = 1
5.0.28307.572
# Visual Studio
Version 16
VisualStudioVersion = 1
6.0.29911.84
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Flyad7_WPF", "Flyad7_WPF\Flyad7_WPF.csproj", "{FC6014B3-1105-4F08-B1D1-1F1398C999AF}"
EndProject
...
...
@@ -34,6 +34,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
版本说明.txt = 版本说明.txt
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FLY.AppHelper", "..\Project.FLY.AppHelper\FLY.AppHelper\FLY.AppHelper.csproj", "{9C46D98F-6500-490B-9E56-C89DFFFA05F8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
...
...
@@ -174,6 +176,18 @@ Global
{267EDB8F-705D-4309-9C50-E89A8610394D}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{267EDB8F-705D-4309-9C50-E89A8610394D}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{267EDB8F-705D-4309-9C50-E89A8610394D}.Release|x86.ActiveCfg = Release|Any CPU
{9C46D98F-6500-490B-9E56-C89DFFFA05F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9C46D98F-6500-490B-9E56-C89DFFFA05F8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9C46D98F-6500-490B-9E56-C89DFFFA05F8}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{9C46D98F-6500-490B-9E56-C89DFFFA05F8}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{9C46D98F-6500-490B-9E56-C89DFFFA05F8}.Debug|x86.ActiveCfg = Debug|Any CPU
{9C46D98F-6500-490B-9E56-C89DFFFA05F8}.Debug|x86.Build.0 = Debug|Any CPU
{9C46D98F-6500-490B-9E56-C89DFFFA05F8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9C46D98F-6500-490B-9E56-C89DFFFA05F8}.Release|Any CPU.Build.0 = Release|Any CPU
{9C46D98F-6500-490B-9E56-C89DFFFA05F8}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{9C46D98F-6500-490B-9E56-C89DFFFA05F8}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{9C46D98F-6500-490B-9E56-C89DFFFA05F8}.Release|x86.ActiveCfg = Release|Any CPU
{9C46D98F-6500-490B-9E56-C89DFFFA05F8}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment