Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.Framework
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王永辉
VIZ.Framework
Commits
b1400c78
Commit
b1400c78
authored
Jul 08, 2022
by
liulongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 添加调试面板
2. 添加应用程序配置
parent
5b3bb857
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
72 additions
and
0 deletions
+72
-0
VIZ.Framework.Common/VIZ.Framework.Common.csproj
+1
-0
VIZ.Framework.Common/Widgets/DebugBorder/DebugBorder.cs
+40
-0
VIZ.Framework.Domain/ApplicationDomain.cs
+10
-0
VIZ.Framework.Storage/Ini/Config/ApplicationConfig.cs
+20
-0
VIZ.Framework.Storage/VIZ.Framework.Storage.csproj
+1
-0
No files found.
VIZ.Framework.Common/VIZ.Framework.Common.csproj
View file @
b1400c78
...
...
@@ -227,6 +227,7 @@
<Compile Include="VideoControl\Stream\VideoStreamOptionBase.cs" />
<Compile Include="VideoControl\Stream\VideoStreamTaskBase.cs" />
<Compile Include="Widgets\ColorPickButton\ColorPickButton.cs" />
<Compile Include="Widgets\DebugBorder\DebugBorder.cs" />
<Compile Include="Widgets\DragWindowBar\DragWindowBar.cs" />
<Compile Include="Widgets\NavigationControl\NavigationConfig.cs" />
<Compile Include="Widgets\NavigationControl\NavigationControl.cs" />
...
...
VIZ.Framework.Common/Widgets/DebugBorder/DebugBorder.cs
0 → 100644
View file @
b1400c78
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Windows.Controls
;
using
VIZ.Framework.Core
;
using
VIZ.Framework.Domain
;
namespace
VIZ.Framework.Common
{
/// <summary>
/// 调试面板
/// </summary>
public
class
DebugBorder
:
Border
{
public
DebugBorder
()
{
this
.
Loaded
+=
DebugBorder_Loaded
;
}
/// <summary>
/// 是否已经完成加载
/// </summary>
private
bool
isAlreadyLoaded
=
false
;
private
void
DebugBorder_Loaded
(
object
sender
,
System
.
Windows
.
RoutedEventArgs
e
)
{
if
(
WPFHelper
.
IsInDesignMode
(
this
))
return
;
if
(
this
.
isAlreadyLoaded
)
return
;
this
.
Visibility
=
ApplicationDomain
.
IS_DEBUG
?
System
.
Windows
.
Visibility
.
Visible
:
System
.
Windows
.
Visibility
.
Hidden
;
this
.
isAlreadyLoaded
=
true
;
}
}
}
VIZ.Framework.Domain/ApplicationDomain.cs
View file @
b1400c78
...
...
@@ -44,5 +44,15 @@ namespace VIZ.Framework.Domain
/// 监控管理器
/// </summary>
public
static
IMonitorManager
MonitorManager
{
get
;
private
set
;
}
=
new
MonitorManager
();
/// <summary>
/// 是否是调试模式
/// </summary>
public
static
bool
IS_DEBUG
{
get
;
private
set
;
}
static
ApplicationDomain
()
{
IS_DEBUG
=
IniStorage
.
GetValue
<
ApplicationConfig
,
bool
>(
p
=>
p
.
APPLICATION_IS_DEBUG
);
}
}
}
VIZ.Framework.Storage/Ini/Config/ApplicationConfig.cs
0 → 100644
View file @
b1400c78
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
VIZ.Framework.Storage
{
/// <summary>
/// 应用程序配置
/// </summary>
public
class
ApplicationConfig
:
IniConfigBase
{
/// <summary>
/// 是否是调试模式 (True | Flase)
/// </summary>
[
Ini
(
Section
=
"Application"
,
DefaultValue
=
"False"
,
Type
=
typeof
(
bool
))]
public
string
APPLICATION_IS_DEBUG
{
get
;
set
;
}
}
}
VIZ.Framework.Storage/VIZ.Framework.Storage.csproj
View file @
b1400c78
...
...
@@ -70,6 +70,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Ini\Config\ApplicationConfig.cs" />
<Compile Include="Ini\Config\Navigation3DConfig.cs" />
<Compile Include="Ini\Config\VideoConfig.cs" />
<Compile Include="Ini\IniAttribute.cs" />
...
...
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