Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.Package
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.Package
Commits
b5d858a0
Commit
b5d858a0
authored
Feb 17, 2023
by
wangonghui
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://49.233.21.66/liulongfei/VIZ.Package
parents
5f012605
4eaef4ab
Hide whitespace changes
Inline
Side-by-side
Showing
50 changed files
with
2994 additions
and
361 deletions
+2994
-361
VIZ.Package.Common/VIZ.Package.Common.csproj
+6
-6
VIZ.Package.Common/VIZ.Package.Common.csproj.bak
+150
-0
VIZ.Package.Domain/ApplicationConstants.cs
+5
-0
VIZ.Package.Domain/ApplicationDomainEx.Action.cs
+42
-0
VIZ.Package.Domain/ApplicationDomainEx.cs
+16
-2
VIZ.Package.Domain/Message/Page/PageDeleteMessage.cs
+2
-2
VIZ.Package.Domain/Model/ControlObject/ControlObjectModel.cs
+14
-0
VIZ.Package.Domain/Model/Page/PageGroupModel.cs
+19
-0
VIZ.Package.Domain/Model/Page/PageModel.cs
+24
-1
VIZ.Package.Domain/Model/Page/PageModelBase.cs
+1
-1
VIZ.Package.Domain/Model/Scene/SceneInfoModel.cs
+86
-0
VIZ.Package.Domain/VIZ.Package.Domain.csproj
+7
-5
VIZ.Package.Domain/VIZ.Package.Domain.csproj.bak
+161
-0
VIZ.Package.Module.Resource/Icons/icon_clear_32x32.png
+0
-0
VIZ.Package.Module.Resource/VIZ.Package.Module.Resource.csproj
+10
-6
VIZ.Package.Module.Resource/VIZ.Package.Module.Resource.csproj.bak
+263
-0
VIZ.Package.Module/ControlObject/FieldTree/ViewModel/FieldTreeViewModel.cs
+5
-5
VIZ.Package.Module/Main/Service/IMainViewService.cs
+6
-0
VIZ.Package.Module/Main/View/MainTopView.xaml
+1
-1
VIZ.Package.Module/Main/View/MainView.xaml
+5
-1
VIZ.Package.Module/Main/ViewModel/MainConnViewModel.cs
+2
-1
VIZ.Package.Module/Main/ViewModel/MainViewModel.cs
+23
-0
VIZ.Package.Module/Page/Core/Helper/PageViewModelHelper.cs
+265
-0
VIZ.Package.Module/Page/Core/View/PageLoadingWindow.xaml
+17
-0
VIZ.Package.Module/Page/Core/View/PageLoadingWindow.xaml.cs
+28
-0
VIZ.Package.Module/Page/Group/View/PageGroupView.xaml
+31
-2
VIZ.Package.Module/Page/Group/ViewModel/PageGroupViewModel.cs
+171
-80
VIZ.Package.Module/Page/Templage/Service/IPageTemplateService.cs
+2
-2
VIZ.Package.Module/Page/Templage/View/PageTemplateView.xaml
+2
-2
VIZ.Package.Module/Page/Templage/ViewModel/PageTemplateViewModel.cs
+100
-93
VIZ.Package.Module/Plugin/ViewModel/PluginViewModel.cs
+8
-5
VIZ.Package.Module/Resource/GHResource/ViewModel/GHSceneViewModel.cs
+3
-1
VIZ.Package.Module/Setting/Conn/ViewModel/ConnSettingViewModel.cs
+2
-2
VIZ.Package.Module/Task/PackageTask/ViewModel/PackageTaskViewModel.cs
+4
-4
VIZ.Package.Module/VIZ.Package.Module.csproj
+18
-10
VIZ.Package.Module/VIZ.Package.Module.csproj.bak
+667
-0
VIZ.Package.Service/DB/ControlObject/ControlObjectService.cs
+93
-53
VIZ.Package.Service/VIZ.Package.Service.csproj
+3
-0
VIZ.Package.Service/Viz/VizCommandControlObjectService.cs
+98
-54
VIZ.Package.Service/Viz/VizCommandService.cs
+29
-1
VIZ.Package.Service/Viz/VizControlObjectDownloadService.cs
+91
-0
VIZ.Package.Storage/Entity/ControlObject/ControlFieldEntity.cs
+5
-0
VIZ.Package.Storage/Entity/ControlObject/ControlObjectEntity.cs
+51
-0
VIZ.Package.Storage/ProjectDbContext.cs
+8
-8
VIZ.Package.Storage/VIZ.Package.Storage.csproj
+1
-0
VIZ.Package.WpfTest/VIZ.Package.WpfTest.csproj
+4
-4
VIZ.Package.WpfTest/VIZ.Package.WpfTest.csproj.bak
+188
-0
VIZ.Package/App.xaml.cs
+6
-4
VIZ.Package/VIZ.Package.csproj
+5
-5
VIZ.Package/VIZ.Package.csproj.bak
+246
-0
No files found.
VIZ.Package.Common/VIZ.Package.Common.csproj
View file @
b5d858a0
...
...
@@ -50,12 +50,12 @@
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="DevExpress.Data.Desktop.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Data.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Printing.v22.
1.Core, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Core.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.
1.Core, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Data.Desktop.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Data.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Printing.v22.
2.Core, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Core.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.
2.Core, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="log4net, Version=2.0.14.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>..\packages\log4net.2.0.14\lib\net45\log4net.dll</HintPath>
</Reference>
...
...
VIZ.Package.Common/VIZ.Package.Common.csproj.bak
0 → 100644
View file @
b5d858a0
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{E4912BCE-BC90-4457-9EE3-06435496D979}</ProjectGuid>
<OutputType>library</OutputType>
<RootNamespace>VIZ.Package.Common</RootNamespace>
<AssemblyName>VIZ.Package.Common</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="DevExpress.Data.Desktop.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Data.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Printing.v22.1.Core, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Core.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.1.Core, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="log4net, Version=2.0.14.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>..\packages\log4net.2.0.14\lib\net45\log4net.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Data" />
<Reference Include="System.Web" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
</ItemGroup>
<ItemGroup>
<Page Include="Widgets\InputControl\TextInputControl\TextInputWindow.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Widgets\InputControl\TextInputControl\TextInputControl.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Themes\Generic.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<ItemGroup>
<Compile Include="Log\ErrorMessageAppender.cs" />
<Compile Include="Log\LogExpand.cs" />
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<Compile Include="Widgets\InputControl\TextInputControl\TextInputWindow.xaml.cs">
<DependentUpon>TextInputWindow.xaml</DependentUpon>
</Compile>
<Compile Include="Widgets\InputControl\TextInputControl\TextInputControl.xaml.cs">
<DependentUpon>TextInputControl.xaml</DependentUpon>
</Compile>
<Compile Include="Widgets\GridColumnEx\GridColumnResizeMinHeight.cs" />
<Compile Include="Widgets\InputControl\TextInputControl\TextInputControlModel.cs" />
<Compile Include="Widgets\InputControl\TextInputControl\TextInputWindowModel.cs" />
<Compile Include="Widgets\LeftRightTextEdit\LeftRightTextEdit.cs" />
<Compile Include="Widgets\TreeViewControl\DefaultTreeListNodeImageSelector.cs" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Common\VIZ.Framework.Common.csproj">
<Project>{92834c05-703e-4f05-9224-f36220939d8f}</Project>
<Name>VIZ.Framework.Common</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Core\VIZ.Framework.Core.csproj">
<Project>{75b39591-4bc3-4b09-bd7d-ec9f67efa96e}</Project>
<Name>VIZ.Framework.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Domain\VIZ.Framework.Domain.csproj">
<Project>{28661e82-c86a-4611-a028-c34f6ac85c97}</Project>
<Name>VIZ.Framework.Domain</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Domain\VIZ.Package.Domain.csproj">
<Project>{dbaeae47-1f2d-4b05-82c3-abf7cc33aa2d}</Project>
<Name>VIZ.Package.Domain</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
VIZ.Package.Domain/ApplicationConstants.cs
View file @
b5d858a0
...
...
@@ -33,6 +33,11 @@ namespace VIZ.Package.Domain
public
const
string
PROJECT_FILE_FILTER
=
"viz_pkg files(*.viz_pkg)|*.viz_pkg"
;
/// <summary>
/// VIZ命令返回错误前缀
/// </summary>
public
const
string
VIZ_COMMAND_RESULT_ERROR_PREFIX
=
"ERROR"
;
/// <summary>
/// Viz 层集合
/// </summary>
public
readonly
static
List
<
VizLayer
>
VIZ_LAYERS
=
new
List
<
VizLayer
>
{
VizLayer
.
FRONT_LAYER
,
VizLayer
.
MAIN_LAYER
,
VizLayer
.
BACK_LAYER
};
...
...
VIZ.Package.Domain/ApplicationDomainEx.Action.cs
0 → 100644
View file @
b5d858a0
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
VIZ.Package.Domain
{
/// <summary>
/// 应用程序域方法
/// </summary>
public
partial
class
ApplicationDomainEx
{
/// <summary>
/// 根据页获取场景信息
/// </summary>
/// <param name="page">页</param>
/// <returns>场景信息</returns>
public
static
SceneInfoModel
GetSceneInfo
(
PageModel
page
)
{
SceneInfoModel
sceneInfo
=
ApplicationDomainEx
.
SceneInfoList
.
FirstOrDefault
(
p
=>
p
.
ScenePath
==
page
.
ScenePath
&&
p
.
ConnGroupID
==
p
.
ConnGroupID
);
if
(
sceneInfo
!=
null
)
return
sceneInfo
;
lock
(
ApplicationDomainEx
.
SceneInfoList
)
{
SceneInfoModel
sceneInfoInner
=
ApplicationDomainEx
.
SceneInfoList
.
FirstOrDefault
(
p
=>
p
.
ScenePath
==
page
.
ScenePath
&&
p
.
ConnGroupID
==
p
.
ConnGroupID
);
if
(
sceneInfoInner
!=
null
)
return
sceneInfoInner
;
sceneInfo
=
new
SceneInfoModel
();
sceneInfo
.
ConnGroupID
=
page
.
ConnGroupID
;
sceneInfo
.
Scene
=
page
.
Scene
;
sceneInfo
.
ScenePath
=
page
.
ScenePath
;
ApplicationDomainEx
.
SceneInfoList
.
Add
(
sceneInfo
);
}
return
sceneInfo
;
}
}
}
VIZ.Package.Domain/ApplicationDomainEx.cs
View file @
b5d858a0
using
System
;
using
System.Collections.Generic
;
using
System.Collections.ObjectModel
;
using
System.Diagnostics
;
using
System.Linq
;
using
System.Text
;
...
...
@@ -14,7 +15,7 @@ namespace VIZ.Package.Domain
/// <summary>
/// 应用程序域
/// </summary>
public
class
ApplicationDomainEx
:
ApplicationDomain
public
partial
class
ApplicationDomainEx
:
ApplicationDomain
{
// =============================================================
// 窗口
...
...
@@ -110,7 +111,7 @@ namespace VIZ.Package.Domain
/// <summary>
/// 连接分组
/// </summary>
public
static
List
<
ConnGroupModel
>
ConnGroups
{
get
;
set
;
}
public
static
ObservableCollection
<
ConnGroupModel
>
ConnGroups
{
get
;
private
set
;
}
=
new
ObservableCollection
<
ConnGroupModel
>();
/// <summary>
/// Viz预览进程
...
...
@@ -126,5 +127,18 @@ namespace VIZ.Package.Domain
/// 当前页
/// </summary>
public
static
PageModelBase
CurrentPage
{
get
;
set
;
}
/// <summary>
/// 场景是否正在加载
/// </summary>
public
static
bool
IsSceneLoading
{
get
;
set
;
}
/// <summary>
/// 场景信息列表
/// </summary>
/// <remarks>
/// 该值不会入库,仅在内存中保留
/// </remarks>
public
static
List
<
SceneInfoModel
>
SceneInfoList
{
get
;
private
set
;
}
=
new
List
<
SceneInfoModel
>();
}
}
VIZ.Package.Domain/Message/Page/PageDeleteMessage.cs
View file @
b5d858a0
...
...
@@ -12,8 +12,8 @@ namespace VIZ.Package.Domain
public
class
PageDeleteMessage
{
/// <summary>
///
页
///
删除的页集合
/// </summary>
public
PageModelBase
Page
{
get
;
set
;
}
public
List
<
PageModelBase
>
Pages
{
get
;
set
;
}
}
}
VIZ.Package.Domain/Model/ControlObject/ControlObjectModel.cs
View file @
b5d858a0
...
...
@@ -69,6 +69,20 @@ namespace VIZ.Package.Domain
#
endregion
#
region
FieldDetails
--
字段描述
private
string
fieldDetails
;
/// <summary>
/// 字段描述
/// </summary>
public
string
FieldDetails
{
get
{
return
fieldDetails
;
}
set
{
fieldDetails
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
FieldDetails
));
}
}
#
endregion
#
region
FieldNodes
--
字段节点集合
private
List
<
ControlFieldNodeModel
>
fieldNodes
=
new
List
<
ControlFieldNodeModel
>();
...
...
VIZ.Package.Domain/Model/Page/PageGroupModel.cs
View file @
b5d858a0
using
System
;
using
System.Collections
;
using
System.Collections.Generic
;
using
System.Collections.ObjectModel
;
using
System.Linq
;
...
...
@@ -68,5 +69,23 @@ namespace VIZ.Package.Domain
}
#
endregion
// ===========================================================
// 扩展属性
// ===========================================================
#
region
SelectedPages
--
当前选中的页集合
private
IList
selectedPages
;
/// <summary>
/// 当前选中的页集合
/// </summary>
public
IList
SelectedPages
{
get
{
return
selectedPages
;
}
set
{
selectedPages
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectedPages
));
}
}
#
endregion
}
}
VIZ.Package.Domain/Model/Page/PageModel.cs
View file @
b5d858a0
...
...
@@ -106,7 +106,30 @@ namespace VIZ.Package.Domain
public
Guid
ConnGroupID
{
get
{
return
connGroupID
;
}
set
{
connGroupID
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
ConnGroupID
));
}
set
{
connGroupID
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
ConnGroupID
));
this
.
SceneInfo
=
ApplicationDomainEx
.
GetSceneInfo
(
this
);
}
}
#
endregion
// =============================================================
// 扩展属性
// =============================================================
#
region
SceneInfo
--
场景信息
private
SceneInfoModel
sceneInfo
;
/// <summary>
/// 场景信息
/// </summary>
public
SceneInfoModel
SceneInfo
{
get
{
return
sceneInfo
;
}
set
{
sceneInfo
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SceneInfo
));
}
}
#
endregion
...
...
VIZ.Package.Domain/Model/Page/PageModelBase.cs
View file @
b5d858a0
...
...
@@ -72,7 +72,7 @@ namespace VIZ.Package.Domain
#
region
Layer
--
包装层
private
VizLayer
layer
;
private
VizLayer
layer
=
VizLayer
.
MAIN_LAYER
;
/// <summary>
/// 包装层
/// </summary>
...
...
VIZ.Package.Domain/Model/Scene/SceneInfoModel.cs
0 → 100644
View file @
b5d858a0
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
VIZ.Framework.Core
;
namespace
VIZ.Package.Domain
{
/// <summary>
/// 场景信息模型
/// </summary>
public
class
SceneInfoModel
:
ModelBase
{
#
region
ConnGroupID
--
所属连接
ID
private
Guid
connGroupID
;
/// <summary>
/// 所属连接ID
/// </summary>
public
Guid
ConnGroupID
{
get
{
return
connGroupID
;
}
set
{
connGroupID
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
ConnGroupID
));
}
}
#
endregion
#
region
Scene
--
场景名
private
string
scene
;
/// <summary>
/// 场景名
/// </summary>
public
string
Scene
{
get
{
return
scene
;
}
set
{
scene
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
Scene
));
}
}
#
endregion
#
region
ScenePath
--
场景路径
private
string
scenePath
;
/// <summary>
/// 场景路径
/// </summary>
public
string
ScenePath
{
get
{
return
scenePath
;
}
set
{
scenePath
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
ScenePath
));
}
}
#
endregion
#
region
TakeInitedProgress
--
远端初始化进度(
0
-
1
)
private
double
takeInitedProgress
;
/// <summary>
/// 远端初始化进度(0 - 1)
/// </summary>
public
double
TakeInitedProgress
{
get
{
return
takeInitedProgress
;
}
set
{
takeInitedProgress
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
TakeInitedProgress
));
}
}
#
endregion
#
region
TakeInitedMessage
--
远端初始化消息
private
string
takeInitedMessage
;
/// <summary>
/// 远端初始化消息
/// </summary>
public
string
TakeInitedMessage
{
get
{
return
takeInitedMessage
;
}
set
{
takeInitedMessage
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
TakeInitedMessage
));
}
}
#
endregion
}
}
\ No newline at end of file
VIZ.Package.Domain/VIZ.Package.Domain.csproj
View file @
b5d858a0
...
...
@@ -49,11 +49,11 @@
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="DevExpress.Mvvm.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Core.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.
1.Core, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.
1.Extensions, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Mvvm.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Core.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.
2.Core, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.
2.Extensions, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="log4net, Version=2.0.14.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>..\packages\log4net.2.0.14\lib\net45\log4net.dll</HintPath>
</Reference>
...
...
@@ -73,6 +73,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="ApplicationConstants.cs" />
<Compile Include="ApplicationDomainEx.Action.cs" />
<Compile Include="ApplicationDomainEx.cs" />
<Compile Include="Core\GridColumnDefinition.cs" />
<Compile Include="Enum\ConnGroupStatus.cs" />
...
...
@@ -116,6 +117,7 @@
<Compile Include="Model\Resource\ResourceDragData.cs" />
<Compile Include="Model\Resource\ResourceFileModelBase.cs" />
<Compile Include="Model\Resource\ResourceFolderModelBase.cs" />
<Compile Include="Model\Scene\SceneInfoModel.cs" />
<Compile Include="Model\Setting\SettingPageModel.cs" />
<Compile Include="Model\Task\PackageTaskModel.cs" />
<Compile Include="Plugin\IPluginLifeCycle.cs" />
...
...
VIZ.Package.Domain/VIZ.Package.Domain.csproj.bak
0 → 100644
View file @
b5d858a0
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{DBAEAE47-1F2D-4B05-82C3-ABF7CC33AA2D}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>VIZ.Package.Domain</RootNamespace>
<AssemblyName>VIZ.Package.Domain</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="DevExpress.Mvvm.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Core.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.1.Core, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.1.Extensions, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="log4net, Version=2.0.14.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>..\packages\log4net.2.0.14\lib\net45\log4net.dll</HintPath>
</Reference>
<Reference Include="PresentationFramework" />
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<Compile Include="ApplicationConstants.cs" />
<Compile Include="ApplicationDomainEx.cs" />
<Compile Include="Core\GridColumnDefinition.cs" />
<Compile Include="Enum\ConnGroupStatus.cs" />
<Compile Include="Enum\ModulePluginIds.cs" />
<Compile Include="Enum\ViewServiceKeys.cs" />
<Compile Include="Info\VizTreeNodeInfo.cs" />
<Compile Include="Message\Application\ApplicationClosedMessage.cs" />
<Compile Include="Message\Application\ApplicationClosingMessage.cs" />
<Compile Include="Message\Conn\ConnChangedMessage.cs" />
<Compile Include="Message\ControlObject\ControlListFieldChangedMessage.cs" />
<Compile Include="Message\ControlObject\ControlFieldChangedMessage.cs" />
<Compile Include="Message\Log\ErrorLogMessage.cs" />
<Compile Include="Message\Log\VizCommandLogMessage.cs" />
<Compile Include="Message\Page\PageDeleteMessage.cs" />
<Compile Include="Message\Page\PageGroupDeleteMessage.cs" />
<Compile Include="Message\Page\PageOpenMessage.cs" />
<Compile Include="Message\Page\PageInitedMessage.cs" />
<Compile Include="Message\Project\ProjectSaveMessage.cs" />
<Compile Include="Message\Project\ProjectCloseMessage.cs" />
<Compile Include="Message\Project\ProjectOpenMessage.cs" />
<Compile Include="Message\Viz\VizPreviewReadyMessage.cs" />
<Compile Include="Message\Viz\VizPreviewRestartMessage.cs" />
<Compile Include="Model\Conn\ConnGroupModel.cs" />
<Compile Include="Model\Conn\ConnModel.cs" />
<Compile Include="Core\IPackageEndpointManager.cs" />
<Compile Include="Model\ControlObject\ControlFieldNodeModel.cs" />
<Compile Include="Model\ControlObject\ControlObjectModel.cs" />
<Compile Include="Model\File\FileModel.cs" />
<Compile Include="Model\File\FolderModel.cs" />
<Compile Include="Model\Page\PageGroupModel.cs" />
<Compile Include="Model\Page\PageModel.cs" />
<Compile Include="Model\Page\PageModelBase.cs" />
<Compile Include="Model\Page\PageTemplateModel.cs" />
<Compile Include="Model\Resource\Enum\ResourceFileSelectionMode.cs" />
<Compile Include="Model\Resource\Enum\ResourceFileType.cs" />
<Compile Include="Model\Resource\Enum\ResourceFolderType.cs" />
<Compile Include="Model\Resource\GH\GHResourceFileModel.cs" />
<Compile Include="Model\Resource\GH\GHResourceFolderModel.cs" />
<Compile Include="Model\Resource\MH\MHResourceFileModel.cs" />
<Compile Include="Model\Resource\MH\MHResourceFolderModel.cs" />
<Compile Include="Model\Resource\ResourceDragData.cs" />
<Compile Include="Model\Resource\ResourceFileModelBase.cs" />
<Compile Include="Model\Resource\ResourceFolderModelBase.cs" />
<Compile Include="Model\Scene\SceneInfoModel.cs" />
<Compile Include="Model\Setting\SettingPageModel.cs" />
<Compile Include="Model\Task\PackageTaskModel.cs" />
<Compile Include="Plugin\IPluginLifeCycle.cs" />
<Compile Include="Plugin\IPluginSettingView.cs" />
<Compile Include="Plugin\IPluginView.cs" />
<Compile Include="Plugin\PluginInfo.cs" />
<Compile Include="Plugin\PluginType.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Common\VIZ.Framework.Common.csproj">
<Project>{92834c05-703e-4f05-9224-f36220939d8f}</Project>
<Name>VIZ.Framework.Common</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Connection\VIZ.Framework.Connection.csproj">
<Project>{e07528dd-9dee-47c2-b79d-235ecfa6b003}</Project>
<Name>VIZ.Framework.Connection</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Core\VIZ.Framework.Core.csproj">
<Project>{75b39591-4bc3-4b09-bd7d-ec9f67efa96e}</Project>
<Name>VIZ.Framework.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Domain\VIZ.Framework.Domain.csproj">
<Project>{28661e82-c86a-4611-a028-c34f6ac85c97}</Project>
<Name>VIZ.Framework.Domain</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Storage\VIZ.Framework.Storage.csproj">
<Project>{06b80c09-343d-4bb2-aeb1-61cfbfbf5cad}</Project>
<Name>VIZ.Framework.Storage</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Storage\VIZ.Package.Storage.csproj">
<Project>{5bf08a07-9405-4f5d-a7f7-9d9ee17d6dd0}</Project>
<Name>VIZ.Package.Storage</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
VIZ.Package.Module.Resource/Icons/icon_clear_32x32.png
0 → 100644
View file @
b5d858a0
495 Bytes
VIZ.Package.Module.Resource/VIZ.Package.Module.Resource.csproj
View file @
b5d858a0
...
...
@@ -50,12 +50,12 @@
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="DevExpress.Data.Desktop.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Data.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Printing.v22.
1.Core, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Core.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.
1.Core, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Data.Desktop.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Data.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Printing.v22.
2.Core, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Core.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.
2.Core, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
...
...
@@ -255,5 +255,8 @@
<ItemGroup>
<Resource Include="Icons\file_32x32.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\icon_clear_32x32.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
VIZ.Package.Module.Resource/VIZ.Package.Module.Resource.csproj.bak
0 → 100644
View file @
b5d858a0
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{327EA1F4-F23C-418A-A2EF-DA4F1039B333}</ProjectGuid>
<OutputType>library</OutputType>
<RootNamespace>VIZ.Package.Module.Resource</RootNamespace>
<AssemblyName>VIZ.Package.Module.Resource</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="DevExpress.Data.Desktop.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Data.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Printing.v22.1.Core, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Core.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.1.Core, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
</ItemGroup>
<ItemGroup>
<Page Include="DevExpreess\GridControl\GridControl_Files.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Style\CheckBox\CheckBox_Resource.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Style\CheckBox\CheckBox_Preview.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Style\IconButton\IconButton_Default.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Style\RadioButton\RadioButton_Preview.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Themes\Generic.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<ItemGroup>
<Compile Include="Converter\ConnGroupStatus2BrushConverter.cs" />
<Compile Include="Converter\ResourceFileSelectionModeConverter.cs" />
<Compile Include="Converter\RichText2TextConverter.cs" />
<Compile Include="Converter\RowHandleConverter.cs" />
<Compile Include="DevExpreess\Theme\VizThemeThemePalette.cs" />
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\folder_24x24.png" />
<Resource Include="Icons\project_24x24.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\cmd_template.jpg" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\take_continue_30x30.png" />
<Resource Include="Icons\take_in_30x30.png" />
<Resource Include="Icons\take_out_30x30.png" />
<Resource Include="Icons\take_update_30x30.png" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Common.Resource\VIZ.Framework.Common.Resource.csproj">
<Project>{76ef480a-e486-41b7-b7a5-2a849fc8d5bf}</Project>
<Name>VIZ.Framework.Common.Resource</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Common\VIZ.Framework.Common.csproj">
<Project>{92834c05-703e-4f05-9224-f36220939d8f}</Project>
<Name>VIZ.Framework.Common</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Core\VIZ.Framework.Core.csproj">
<Project>{75b39591-4bc3-4b09-bd7d-ec9f67efa96e}</Project>
<Name>VIZ.Framework.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Domain\VIZ.Framework.Domain.csproj">
<Project>{28661e82-c86a-4611-a028-c34f6ac85c97}</Project>
<Name>VIZ.Framework.Domain</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Domain\VIZ.Package.Domain.csproj">
<Project>{dbaeae47-1f2d-4b05-82c3-abf7cc33aa2d}</Project>
<Name>VIZ.Package.Domain</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\bb_36x36.png" />
<Resource Include="Icons\bb_hover_36x36.png" />
<Resource Include="Icons\continue_36x36.png" />
<Resource Include="Icons\continue_hover_36x36.png" />
<Resource Include="Icons\keyed_36x36.png" />
<Resource Include="Icons\keyed_hover_36x36.png" />
<Resource Include="Icons\keyed_preview_36x36.png" />
<Resource Include="Icons\keyed_preview_hover_36x36.png" />
<Resource Include="Icons\play_36x36.png" />
<Resource Include="Icons\play_hover_36x36.png" />
<Resource Include="Icons\rgb_36x36.png" />
<Resource Include="Icons\rgb_hover_36x36.png" />
<Resource Include="Icons\sa_36x36.png" />
<Resource Include="Icons\sa_hover_36x36.png" />
<Resource Include="Icons\stop_36x36.png" />
<Resource Include="Icons\stop_hover_36x36.png" />
<Resource Include="Icons\ta_36x36.png" />
<Resource Include="Icons\ta_hover_36x36.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\checked_36x36.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\image_20x20.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Vedio.jpeg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<Resource Include="Images\logo_large.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\icon_save_30x30.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\icon_save_hover_30x30.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\icon_save_as_30x30.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\icon_save_as_hover_30x30.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\preview_local_32x32.png" />
<Resource Include="Icons\preview_remote_32x32.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\preview_connection_32x32.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\add_32x32.png" />
<Resource Include="Icons\delete_32x32.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\status_error_32x32.png" />
<Resource Include="Icons\status_pause_32x32.png" />
<Resource Include="Icons\status_runing_32x32.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\message_32x32.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\icon_pause_32x32.png" />
<Resource Include="Icons\icon_play_32x32.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\top_icon_save_20x20.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\top_icon_create_20x20.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\top_icon_open_20x20.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\top_icon_close_20x20.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\top_icon_layout_20x20.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\top_icon_about_20x20.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\preview_refresh_32x32.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\file_32x32.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\icon_clear_32x32.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
VIZ.Package.Module/ControlObject/FieldTree/ViewModel/FieldTreeViewModel.cs
View file @
b5d858a0
...
...
@@ -137,13 +137,13 @@ namespace VIZ.Package.Module
ThreadHelper
.
SafeRun
(
action
:
()
=>
{
// 获取控制对象
ControlObjectModel
controlObject
=
this
.
vizCommandControlObjectService
.
GetControlObject
(
ApplicationDomainEx
.
PreviewConn
);
// 从本地数据库获取控制对象
ControlObjectEntity
entity
=
this
.
controlObjectService
.
GetControlObject
(
msg
.
Page
)?.
FirstOrDefault
();
ControlObjectModel
controlObject
=
new
ControlObjectModel
();
this
.
vizCommandControlObjectService
.
UpdateControlObjectModel
(
controlObject
,
entity
);
// 从本地数据库中获取字段
数据
// 从本地数据库中获取字段
值
List
<
ControlFieldEntity
>
fields
=
this
.
controlObjectService
.
GetControlFields
(
msg
.
Page
);
// 从本地数据库中更新值
controlObjectService
.
UpdateControlFieldValue
(
controlObject
.
AllFiledNodes
,
fields
);
WPFHelper
.
Invoke
(()
=>
...
...
VIZ.Package.Module/Main/Service/IMainViewService.cs
View file @
b5d858a0
...
...
@@ -21,5 +21,11 @@ namespace VIZ.Package.Module
/// 加载布局
/// </summary>
void
LoadLayout
();
/// <summary>
/// 设置主视图是否可用
/// </summary>
/// <param name="isEnabled">是否可用</param>
void
SetIsEnabled
(
bool
isEnabled
);
}
}
VIZ.Package.Module/Main/View/MainTopView.xaml
View file @
b5d858a0
...
...
@@ -35,7 +35,7 @@
<Image Source="/VIZ.Package;component/logo.ico" Margin="2,5,2,2"
VerticalAlignment="Center"></Image>
<dxb:MainMenuControl Caption="MainMenu" VerticalAlignment="Center" Margin="
10
,0,0,0">
<dxb:MainMenuControl Caption="MainMenu" VerticalAlignment="Center" Margin="
5
,0,0,0">
<dxb:MainMenuControl.Resources>
<Style TargetType="dxb:BarSubItem">
<Setter Property="Margin" Value="0,0,3,0"></Setter>
...
...
VIZ.Package.Module/Main/View/MainView.xaml
View file @
b5d858a0
...
...
@@ -12,12 +12,15 @@
xmlns:fcore="clr-namespace:VIZ.Framework.Core;assembly=VIZ.Framework.Core"
xmlns:plugin="clr-namespace:VIZ.Package.Plugin;assembly=VIZ.Package.Plugin"
xmlns:domain="clr-namespace:VIZ.Package.Domain;assembly=VIZ.Package.Domain"
xmlns:local="clr-namespace:VIZ.Package.Module"
xmlns:local="clr-namespace:VIZ.Package.Module"
IsEnabled="{Binding Path=IsEnabled}"
d:DataContext="{d:DesignInstance Type=local:MainViewModel}"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<UserControl.Resources>
<fcore:Bool2BoolConverter x:Key="Bool2BoolConverter"></fcore:Bool2BoolConverter>
<DataTemplate DataType="{x:Type domain:PluginInfo}">
<plugin:PluginLoader ViewType="{Binding ViewType,Mode=OneWay}"></plugin:PluginLoader>
</DataTemplate>
...
...
@@ -55,4 +58,5 @@
AutoHideExpandMode="MouseDown">
<dxdo:LayoutGroup ItemsSource="{Binding ItemsSource}"></dxdo:LayoutGroup>
</dxdo:DockLayoutManager>
</UserControl>
VIZ.Package.Module/Main/ViewModel/MainConnViewModel.cs
View file @
b5d858a0
...
...
@@ -132,7 +132,8 @@ namespace VIZ.Package.Module
private
void
OnVizPreviewReadyMessage
(
VizPreviewReadyMessage
msg
)
{
List
<
ConnGroupModel
>
groups
=
this
.
connService
.
LoadGroups
();
ApplicationDomainEx
.
ConnGroups
=
groups
;
ApplicationDomainEx
.
ConnGroups
.
Clear
();
ApplicationDomainEx
.
ConnGroups
.
AddRange
(
groups
);
this
.
InitAndConnnectGroups
();
}
...
...
VIZ.Package.Module/Main/ViewModel/MainViewModel.cs
View file @
b5d858a0
...
...
@@ -66,6 +66,20 @@ namespace VIZ.Package.Module
#
endregion
#
region
IsEnabled
--
是否可用
private
bool
isEnabled
=
true
;
/// <summary>
/// 是否可用
/// </summary>
public
bool
IsEnabled
{
get
{
return
isEnabled
;
}
set
{
isEnabled
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
IsEnabled
));
}
}
#
endregion
// ============================================================
// Command
// ============================================================
...
...
@@ -177,6 +191,15 @@ namespace VIZ.Package.Module
view
.
dockLayoutManager
.
RestoreLayoutFromXml
(
path
);
}
/// <summary>
/// 设置主视图是否可用
/// </summary>
/// <param name="isEnabled">是否可用</param>
public
void
SetIsEnabled
(
bool
isEnabled
)
{
this
.
IsEnabled
=
isEnabled
;
}
// ============================================================
// Private Function
// ============================================================
...
...
VIZ.Package.Module/Page/Core/Helper/PageViewModelHelper.cs
0 → 100644
View file @
b5d858a0
using
DevExpress.XtraPrinting.Native
;
using
log4net
;
using
System
;
using
System.Collections.Generic
;
using
System.Diagnostics
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
VIZ.Framework.Core
;
using
VIZ.Package.Domain
;
using
VIZ.Package.Service
;
using
VIZ.Package.Storage
;
namespace
VIZ.Package.Module
{
/// <summary>
/// 页视图模型辅助类
/// </summary>
public
class
PageViewModelHelper
{
/// <summary>
/// 日志
/// </summary>
private
readonly
static
ILog
log
=
LogManager
.
GetLogger
(
typeof
(
PageViewModelHelper
));
/// <summary>
/// GH服务
/// </summary>
private
GHService
ghService
=
new
GHService
();
/// <summary>
/// Viz命令服务
/// </summary>
private
VizCommandService
vizCommandService
=
new
VizCommandService
();
/// <summary>
/// Viz控制对象下载服务
/// </summary>
private
VizControlObjectDownloadService
vizControlObjectDownloadService
=
new
VizControlObjectDownloadService
();
/// <summary>
/// 开始下载图片任务
/// </summary>
/// <param name="pages">页集合</param>
public
void
BeginDownLoadIamge
(
List
<
PageModelBase
>
pages
)
{
ThreadHelper
.
SafeRun
(()
=>
{
foreach
(
PageModelBase
page
in
pages
)
{
if
(
page
.
ThumbnailBitmap
!=
null
)
continue
;
if
(
string
.
IsNullOrWhiteSpace
(
page
.
ThumbnailUri
))
continue
;
var
bitmap
=
this
.
ghService
.
GetImage
(
page
.
ThumbnailUri
);
WPFHelper
.
BeginInvoke
(()
=>
{
page
.
ThumbnailBitmap
=
bitmap
;
});
}
});
}
/// <summary>
/// 开始下载控制对象
/// </summary>
/// <param name="pages">页集合</param>
/// <param name="callback">下载完成回调</param>
public
void
BeginDownLoadControlObject
(
List
<
PageModelBase
>
pages
,
Action
callback
)
{
if
(
pages
==
null
||
pages
.
Count
==
0
)
return
;
PageLoadingWindow
window
=
new
PageLoadingWindow
();
window
.
Owner
=
ApplicationDomainEx
.
MainWindow
;
Task
.
Run
(()
=>
{
IMainViewService
service
=
ApplicationDomainEx
.
ServiceManager
.
GetService
<
IMainViewService
>(
ViewServiceKeys
.
MAIN_VIEW_SERVICE
);
// 设置主窗口不可用
WPFHelper
.
Invoke
(()
=>
{
ApplicationDomainEx
.
IsSceneLoading
=
true
;
service
?.
SetIsEnabled
(
false
);
window
?.
Show
();
});
// 下载页控制对象信息
try
{
this
.
vizControlObjectDownloadService
.
Load
(
pages
);
}
catch
(
Exception
ex
)
{
log
.
Error
(
ex
);
}
finally
{
// 恢复主窗口可用
WPFHelper
.
Invoke
(()
=>
{
ApplicationDomainEx
.
IsSceneLoading
=
false
;
service
?.
SetIsEnabled
(
true
);
window
?.
Close
();
// 回调
callback
?.
Invoke
();
});
}
});
}
/// <summary>
/// 开始清理
/// </summary>
/// <param name="groups">链接分组</param>
public
void
BeginTakeClear
(
List
<
ConnGroupModel
>
groups
)
{
if
(
groups
==
null
||
groups
.
Count
==
0
)
return
;
ThreadHelper
.
SafeRun
(()
=>
{
ApplicationDomainEx
.
IsSceneLoading
=
true
;
foreach
(
ConnGroupModel
group
in
groups
)
{
if
(
group
==
ApplicationDomainEx
.
PreviewConnGroup
)
continue
;
if
(
group
.
Items
==
null
||
group
.
Items
.
Count
==
0
)
continue
;
List
<
ConnModel
>
items
=
group
.
Items
.
ToList
();
foreach
(
ConnModel
item
in
items
)
{
try
{
if
(!
item
.
IsEnabled
||
!
item
.
IsConnected
)
continue
;
this
.
vizCommandService
.
TakeClear
(
ApplicationDomainEx
.
PreviewConn
);
}
catch
(
Exception
ex
)
{
log
.
Error
(
ex
);
}
}
}
ApplicationDomainEx
.
IsSceneLoading
=
true
;
});
}
/// <summary>
/// 开始初始化页
/// </summary>
/// <param name="pages">页集合</param>
public
void
BeginTakeInit
(
List
<
PageModel
>
pages
)
{
if
(
pages
==
null
||
pages
.
Count
==
0
)
return
;
ThreadHelper
.
SafeRun
(()
=>
{
ApplicationDomainEx
.
IsSceneLoading
=
true
;
// 清理状态
WPFHelper
.
Invoke
(()
=>
{
foreach
(
PageModel
page
in
pages
)
{
if
(
page
.
SceneInfo
==
null
)
continue
;
page
.
SceneInfo
.
TakeInitedProgress
=
0d
;
page
.
SceneInfo
.
TakeInitedMessage
=
null
;
}
});
// 已经处理过的场景信息列表
List
<
SceneInfoModel
>
executedList
=
new
List
<
SceneInfoModel
>();
foreach
(
PageModel
page
in
pages
)
{
if
(
page
.
SceneInfo
==
null
)
continue
;
if
(
executedList
.
Contains
(
page
.
SceneInfo
))
continue
;
executedList
.
Add
(
page
.
SceneInfo
);
// 是否拥有关联的连接分组信息
ConnGroupModel
group
=
ApplicationDomainEx
.
ConnGroups
.
FirstOrDefault
(
p
=>
p
.
GroupID
==
page
.
ConnGroupID
);
if
(
group
==
null
)
{
WPFHelper
.
BeginInvoke
(()
=>
{
page
.
SceneInfo
.
TakeInitedMessage
=
$"未找到页关联的连接分组"
;
});
continue
;
}
// 连接分组是否拥有可用的连接
var
conns
=
group
.
Items
.
Where
(
p
=>
p
.
IsEnabled
).
ToList
();
if
(
conns
.
Count
==
0
)
{
WPFHelper
.
BeginInvoke
(()
=>
{
page
.
SceneInfo
.
TakeInitedMessage
=
$"连接分组没有连接可用"
;
});
continue
;
}
int
progressMax
=
conns
.
Count
;
int
progress
=
0
;
StringBuilder
message
=
new
StringBuilder
();
foreach
(
ConnModel
conn
in
conns
)
{
try
{
if
(!
conn
.
IsConnected
||
!
conn
.
IsEnabled
)
{
message
.
AppendLine
(
$"
{
conn
.
IP
}
:
{
conn
.
Port
}
连接中断"
);
continue
;
}
string
result
=
this
.
vizCommandService
.
TakeInit
(
conn
,
page
.
ScenePath
);
// 是否执行成功
if
(
result
.
StartsWith
(
ApplicationConstants
.
VIZ_COMMAND_RESULT_ERROR_PREFIX
))
{
message
.
AppendLine
(
result
);
continue
;
}
++
progress
;
}
catch
(
Exception
ex
)
{
log
.
Error
(
ex
);
message
.
AppendLine
(
ex
.
Message
);
}
}
WPFHelper
.
BeginInvoke
(()
=>
{
page
.
SceneInfo
.
TakeInitedProgress
=
(
double
)
progress
/
(
double
)
progressMax
;
page
.
SceneInfo
.
TakeInitedMessage
=
message
.
ToString
();
});
}
ApplicationDomainEx
.
IsSceneLoading
=
true
;
});
}
}
}
VIZ.Package.Module/Page/Core/View/PageLoadingWindow.xaml
0 → 100644
View file @
b5d858a0
<Window x:Class="VIZ.Package.Module.PageLoadingWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
ShowInTaskbar="False"
mc:Ignorable="d" AllowsTransparency="True" Background="{x:Null}"
WindowStyle="None" WindowStartupLocation="CenterScreen"
Title="Loading" Height="140" Width="300">
<Grid>
<dx:WaitIndicator DeferedVisibility="True" Content="Loading..." />
</Grid>
</Window>
VIZ.Package.Module/Page/Core/View/PageLoadingWindow.xaml.cs
0 → 100644
View file @
b5d858a0
using
DevExpress.Xpf.Core
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Windows
;
using
System.Windows.Controls
;
using
System.Windows.Data
;
using
System.Windows.Documents
;
using
System.Windows.Input
;
using
System.Windows.Media
;
using
System.Windows.Media.Imaging
;
using
System.Windows.Shapes
;
namespace
VIZ.Package.Module
{
/// <summary>
/// Interaction logic for PageLoadingWindow.xaml
/// </summary>
public
partial
class
PageLoadingWindow
:
Window
{
public
PageLoadingWindow
()
{
InitializeComponent
();
}
}
}
VIZ.Package.Module/Page/Group/View/PageGroupView.xaml
View file @
b5d858a0
...
...
@@ -22,6 +22,10 @@
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/VIZ.Package.Module.Resource;component/Style/IconButton/IconButton_Default.xaml"></ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
<resource:RowHandleConverter x:Key="RowHandleConverter"></resource:RowHandleConverter>
<fcore:Bitmap2ImageSourceConverter x:Key="Bitmap2ImageSourceConverter"></fcore:Bitmap2ImageSourceConverter>
<fcore:Enum2EnumDescriptionConverter x:Key="Enum2EnumDescriptionConverter" EnumType="{x:Type storage:PageType}"></fcore:Enum2EnumDescriptionConverter>
...
...
@@ -29,6 +33,22 @@
</UserControl.Resources>
<Grid IsEnabled="{Binding IsEnabled}">
<Grid.RowDefinitions>
<RowDefinition Height="35"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<!-- 按钮组 -->
<Border Background="#11FFFFFF">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<!-- 清理 -->
<fcommon:IconButton Icon="/VIZ.Package.Module.Resource;component/Icons/icon_clear_32x32.png"
Style="{StaticResource IconButton_Menu_Mask}"
ToolTip="清理内存" Margin="5,0,0,0"
IconWidth="24" IconHeight="24" Width="24" Height="24"
Command="{Binding TakeClearCommand}"></fcommon:IconButton>
</StackPanel>
</Border>
<dx:DXTabControl Grid.Row="1" Margin="0,5,0,0" Padding="0,5,0,0"
ItemsSource="{Binding Path=PageGroupModels}"
SelectedItem="{Binding Path=SelectedPageGroupModel,Mode=TwoWay}">
...
...
@@ -39,6 +59,9 @@
<MenuItem Header="新建分组" Command="{Binding Path=PlacementTarget.DataContext.AddGroupCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>
<MenuItem Header="重命名分组" Command="{Binding Path=PlacementTarget.DataContext.RenameGroupCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>
<Separator></Separator>
<MenuItem Header="更新页" Command="{Binding Path=PlacementTarget.DataContext.UpdateCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>
<MenuItem Header="初始化页" Command="{Binding Path=PlacementTarget.DataContext.TakeInitCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>
<Separator></Separator>
<MenuItem Header="删除分组" Command="{Binding Path=PlacementTarget.DataContext.DeleteGroupCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>
<MenuItem Header="删除节目单项" Command="{Binding Path=PlacementTarget.DataContext.DeleteItemCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>
</ContextMenu>
...
...
@@ -62,8 +85,8 @@
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<dxg:GridControl ItemsSource="{Binding Pa
ges}" ShowBorder="False" IsFilterEnabled="False
"
SelectedItem
="{Binding ElementName=uc, Path=DataContext.SelectedPageModel,Mode=TwoWay
}">
<dxg:GridControl ItemsSource="{Binding Pa
th=Pages}" ShowBorder="False" IsFilterEnabled="False" SelectionMode="Row
"
SelectedItem
s="{Binding Path=SelectedPages,Mode=OneWayToSource
}">
<dxg:GridControl.Columns>
<dxg:GridColumn Header="编号" AllowSorting="False" AllowColumnFiltering="False" AllowResizing="True"
FieldName="PageNum">
...
...
@@ -108,6 +131,12 @@
DisplayMember="Name" ValueMember="GroupID" IsTextEditable="False"></dxe:ComboBoxEditSettings>
</dxg:GridColumn.EditSettings>
</dxg:GridColumn>
<dxg:GridColumn Header="加载" ReadOnly="True" AllowSorting="False" AllowColumnFiltering="False" AllowEditing="False"
Binding="{Binding Path=SceneInfo.TakeInitedProgress}">
<dxg:GridColumn.EditSettings>
<dxe:ProgressBarEditSettings ContentDisplayMode="Value" Minimum="0" Maximum="1" />
</dxg:GridColumn.EditSettings>
</dxg:GridColumn>
<dxg:GridColumn Header="引擎类型" FieldName="EngineType" ReadOnly="True" AllowSorting="False" AllowColumnFiltering="False"></dxg:GridColumn>
<dxg:GridColumn Header="模板类型" ReadOnly="True" AllowSorting="False" AllowColumnFiltering="False"
Binding="{Binding Path=PageType,Converter={StaticResource Enum2EnumDescriptionConverter}}">
...
...
VIZ.Package.Module/Page/Group/ViewModel/PageGroupViewModel.cs
View file @
b5d858a0
...
...
@@ -47,6 +47,9 @@ namespace VIZ.Package.Module
this
.
DeleteGroupCommand
=
new
VCommand
(
this
.
DeleteGroup
);
this
.
DeleteItemCommand
=
new
VCommand
(
this
.
DeleteItem
);
this
.
OpenPageCommand
=
new
VCommand
(
this
.
OpenPage
);
this
.
UpdateCommand
=
new
VCommand
(
this
.
Update
);
this
.
TakeClearCommand
=
new
VCommand
(
this
.
TakeClear
);
this
.
TakeInitCommand
=
new
VCommand
(
this
.
TakeInit
);
}
/// <summary>
...
...
@@ -66,6 +69,11 @@ namespace VIZ.Package.Module
// ======================================================================================
/// <summary>
/// 页视图模型辅助类
/// </summary>
private
PageViewModelHelper
pageViewModelHelper
=
new
PageViewModelHelper
();
/// <summary>
/// 页服务
/// </summary>
private
PageService
pageService
=
new
PageService
();
...
...
@@ -76,6 +84,11 @@ namespace VIZ.Package.Module
private
GHService
ghService
=
new
GHService
();
/// <summary>
/// Viz命令服务
/// </summary>
private
VizCommandService
vizCommandService
=
new
VizCommandService
();
/// <summary>
/// 控制对象服务
/// </summary>
private
ControlObjectService
controlObjectService
=
new
ControlObjectService
();
...
...
@@ -135,38 +148,18 @@ namespace VIZ.Package.Module
public
PageGroupModel
SelectedPageGroupModel
{
get
{
return
selectedPageGroupModel
;
}
set
{
selectedPageGroupModel
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectedPageGroupModel
));
this
.
SelectedPageModel
=
null
;
}
}
#
endregion
#
region
SelectedPageModel
--
当前选中的页
private
PageModel
selectedPageModel
;
/// <summary>
/// 当前选中的页
/// </summary>
public
PageModel
SelectedPageModel
{
get
{
return
selectedPageModel
;
}
set
{
selectedPageModel
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectedPageModel
));
}
set
{
selectedPageGroupModel
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectedPageGroupModel
));
}
}
#
endregion
#
region
ConnGroups
--
连接分组集合
private
List
<
ConnGroupModel
>
connGroups
;
private
ObservableCollection
<
ConnGroupModel
>
connGroups
;
/// <summary>
/// 连接分组集合
/// </summary>
public
List
<
ConnGroupModel
>
ConnGroups
public
ObservableCollection
<
ConnGroupModel
>
ConnGroups
{
get
{
return
connGroups
;
}
set
{
connGroups
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
ConnGroups
));
}
...
...
@@ -283,17 +276,28 @@ namespace VIZ.Package.Module
/// </summary>
private
void
DeleteItem
()
{
if
(
this
.
SelectedPageGroupModel
==
null
||
this
.
SelectedPageModel
==
null
)
if
(
this
.
SelectedPageGroupModel
==
null
)
return
;
if
(
DXMessageBox
.
Show
(
$"是否删除项【
{
this
.
SelectedPageModel
.
Scene
}
】"
,
"提示"
,
MessageBoxButton
.
YesNo
)
!=
MessageBoxResult
.
Yes
)
if
(
this
.
SelectedPageGroupModel
.
SelectedPages
==
null
||
this
.
SelectedPageGroupModel
.
Pages
.
Count
==
0
)
return
;
PageModel
page
=
this
.
SelectedPageModel
;
this
.
SelectedPageGroupModel
.
Pages
.
Remove
(
this
.
SelectedPageModel
);
if
(
DXMessageBox
.
Show
(
$"是否删除项"
,
"提示"
,
MessageBoxButton
.
YesNo
)
!=
MessageBoxResult
.
Yes
)
return
;
List
<
PageModel
>
pages
=
new
List
<
PageModel
>();
foreach
(
PageModel
page
in
this
.
SelectedPageGroupModel
.
SelectedPages
)
{
pages
.
Add
(
page
);
}
foreach
(
PageModel
page
in
pages
)
{
this
.
SelectedPageGroupModel
.
Pages
.
Remove
(
page
);
}
PageDeleteMessage
msg
=
new
PageDeleteMessage
();
msg
.
Page
=
page
;
msg
.
Page
s
=
pages
.
ToList
<
PageModelBase
>()
;
ApplicationDomainEx
.
MessageManager
.
Send
(
msg
);
}
...
...
@@ -307,21 +311,108 @@ namespace VIZ.Package.Module
public
VCommand
OpenPageCommand
{
get
;
set
;
}
/// <summary>
/// 打开
场景
页
/// 打开页
/// </summary>
private
void
OpenPage
()
{
if
(
this
.
SelectedPageModel
==
null
)
if
(
this
.
SelectedPageGroupModel
==
null
)
return
;
if
(
this
.
SelectedPageGroupModel
.
SelectedPages
==
null
||
this
.
SelectedPageGroupModel
.
SelectedPages
.
Count
==
0
)
return
;
PageModel
page
=
this
.
SelectedPageGroupModel
.
SelectedPages
[
0
]
as
PageModel
;
this
.
OpenPage
(
page
);
}
#
endregion
#
region
UpdateCommand
--
更新命令
/// <summary>
/// 更新命令
/// </summary>
public
VCommand
UpdateCommand
{
get
;
set
;
}
/// <summary>
/// 更新
/// </summary>
private
void
Update
()
{
if
(
this
.
SelectedPageGroupModel
==
null
)
return
;
if
(
ApplicationDomainEx
.
CurrentPage
==
this
.
SelectedPageModel
)
if
(
this
.
SelectedPageGroupModel
.
SelectedPages
==
null
||
this
.
SelectedPageGroupModel
.
SelectedPages
.
Count
==
0
)
return
;
ApplicationDomainEx
.
CurrentPage
=
this
.
SelectedPageModel
;
List
<
PageModelBase
>
pages
=
new
List
<
PageModelBase
>();
foreach
(
PageModelBase
page
in
this
.
SelectedPageGroupModel
.
SelectedPages
)
{
pages
.
Add
(
page
);
}
PageOpenMessage
msg
=
new
PageOpenMessage
();
msg
.
Page
=
this
.
SelectedPageModel
;
ApplicationDomainEx
.
MessageManager
.
Send
(
msg
);
// 开始下载图片
this
.
pageViewModelHelper
.
BeginDownLoadIamge
(
pages
);
// 开始下载控制对象
this
.
pageViewModelHelper
.
BeginDownLoadControlObject
(
pages
,
()
=>
{
// 控制对象下载完成后打开最后一个模板
PageModel
last
=
pages
.
LastOrDefault
()
as
PageModel
;
if
(
last
==
null
)
return
;
this
.
OpenPage
(
last
);
});
}
#
endregion
#
region
TakeClearCommand
--
页清理命令
/// <summary>
/// 页清理命令
/// </summary>
public
VCommand
TakeClearCommand
{
get
;
set
;
}
/// <summary>
/// 页清理
/// </summary>
private
void
TakeClear
()
{
List
<
ConnGroupModel
>
groups
=
ApplicationDomainEx
.
ConnGroups
.
ToList
();
this
.
pageViewModelHelper
.
BeginTakeClear
(
groups
);
}
#
endregion
#
region
TakeInitCommand
--
初始化页命令
/// <summary>
/// 初始化页命令
/// </summary>
public
VCommand
TakeInitCommand
{
get
;
set
;
}
/// <summary>
/// 初始化页
/// </summary>
private
void
TakeInit
()
{
if
(
this
.
SelectedPageGroupModel
==
null
)
return
;
if
(
this
.
SelectedPageGroupModel
.
SelectedPages
==
null
||
this
.
SelectedPageGroupModel
.
SelectedPages
.
Count
==
0
)
return
;
List
<
PageModel
>
pages
=
new
List
<
PageModel
>();
foreach
(
PageModel
page
in
this
.
SelectedPageGroupModel
.
SelectedPages
)
{
pages
.
Add
(
page
);
}
// 开始初始化
this
.
pageViewModelHelper
.
BeginTakeInit
(
pages
);
}
#
endregion
...
...
@@ -339,7 +430,6 @@ namespace VIZ.Package.Module
this
.
IsEnabled
=
true
;
this
.
PageGroupModels
=
null
;
this
.
SelectedPageGroupModel
=
null
;
this
.
SelectedPageModel
=
null
;
this
.
IsLoading
=
true
;
this
.
UpdateConnGroups
();
...
...
@@ -349,7 +439,6 @@ namespace VIZ.Package.Module
var
pageGroups
=
this
.
pageService
.
LoadPageGroups
().
ToObservableCollection
();
// 更新界面
WPFHelper
.
Invoke
(()
=>
{
this
.
PageGroupModels
=
pageGroups
;
...
...
@@ -362,15 +451,7 @@ namespace VIZ.Package.Module
return
;
// 获取场景模板缩略图
foreach
(
var
model
in
this
.
SelectedPageGroupModel
.
Pages
)
{
var
bitmap
=
ghService
.
GetImage
(
model
.
ThumbnailUri
);
WPFHelper
.
BeginInvoke
(()
=>
{
model
.
ThumbnailBitmap
=
bitmap
;
});
}
this
.
pageViewModelHelper
.
BeginDownLoadIamge
(
this
.
SelectedPageGroupModel
.
Pages
.
ToList
<
PageModelBase
>());
});
}
...
...
@@ -384,7 +465,6 @@ namespace VIZ.Package.Module
this
.
IsLoading
=
false
;
this
.
PageGroupModels
=
null
;
this
.
SelectedPageGroupModel
=
null
;
this
.
SelectedPageModel
=
null
;
}
/// <summary>
...
...
@@ -444,23 +524,21 @@ namespace VIZ.Package.Module
page
.
PluginName
=
vm
.
SelectedTemplatePlugin
?.
Name
;
page
.
PageNum
=
this
.
SelectedPageGroupModel
.
Pages
.
Count
==
0
?
1
:
(
this
.
SelectedPageGroupModel
.
Pages
.
Max
(
p
=>
p
.
PageNum
)
+
1
);
// 关联连接分组
ConnGroupModel
conn
=
ApplicationDomainEx
.
ConnGroups
?.
FirstOrDefault
(
p
=>
p
.
IsDefault
);
page
.
ConnGroupID
=
conn
!=
null
?
conn
.
GroupID
:
Guid
.
Empty
;
this
.
SelectedPageGroupModel
.
Pages
.
Add
(
page
);
// 将模板控制对象拷贝值页控制对象
this
.
controlObjectService
.
CopyControlObjects
(
template
.
TemplateID
,
page
.
PageID
);
if
(
page
.
ThumbnailBitmap
==
null
)
{
ThreadHelper
.
SafeRun
(()
=>
{
var
bmp
=
this
.
ghService
.
GetImage
(
page
.
ThumbnailUri
);
// 将模板控制字段拷贝至页控制字段
this
.
controlObjectService
.
CopyControlFields
(
template
.
TemplateID
,
page
.
PageID
);
WPFHelper
.
BeginInvoke
(()
=>
{
page
.
ThumbnailBitmap
=
bmp
;
});
});
}
// 添加页
this
.
SelectedPageGroupModel
.
Pages
.
Add
(
page
);
// 获取缩略图
this
.
pageViewModelHelper
.
BeginDownLoadIamge
(
new
List
<
PageModelBase
>
{
page
});
return
page
;
}
...
...
@@ -471,32 +549,39 @@ namespace VIZ.Package.Module
/// <returns>页</returns>
public
PageModel
CopyPage
()
{
if
(
this
.
SelectedPageGroupModel
==
null
||
this
.
SelectedPageModel
==
null
)
return
null
;
// 当前没有打开的页
if
(
ApplicationDomainEx
.
CurrentPage
==
null
)
// 当前打开的页为页模型时可以被拷贝
PageModel
srcPage
=
ApplicationDomainEx
.
CurrentPage
as
PageModel
;
if
(
srcPage
==
null
)
return
null
;
PageModel
page
=
new
PageModel
();
page
.
PageID
=
Guid
.
NewGuid
();
page
.
PageGroupID
=
this
.
SelectedPageGroupModel
.
GroupID
;
page
.
Scene
=
this
.
SelectedPageModel
.
Scene
;
page
.
ScenePath
=
this
.
SelectedPageModel
.
ScenePath
;
page
.
ThumbnailUri
=
this
.
SelectedPageModel
.
ThumbnailUri
;
page
.
Remark
=
this
.
SelectedPageModel
.
Remark
;
page
.
Layer
=
this
.
SelectedPageModel
.
Layer
;
page
.
EngineType
=
this
.
SelectedPageModel
.
EngineType
;
page
.
PageType
=
this
.
SelectedPageModel
.
PageType
;
page
.
TemplateID
=
this
.
SelectedPageModel
.
TemplateID
;
page
.
ThumbnailBitmap
=
this
.
SelectedPageModel
.
ThumbnailBitmap
;
page
.
PluginID
=
this
.
SelectedPageModel
.
PluginID
;
page
.
PluginName
=
this
.
SelectedPageModel
.
PluginName
;
page
.
ConnGroupID
=
this
.
SelectedPageModel
.
ConnGroupID
;
page
.
PageGroupID
=
srcPage
.
PageGroupID
;
page
.
Scene
=
srcPage
.
Scene
;
page
.
ScenePath
=
srcPage
.
ScenePath
;
page
.
ThumbnailUri
=
srcPage
.
ThumbnailUri
;
page
.
Remark
=
srcPage
.
Remark
;
page
.
Layer
=
srcPage
.
Layer
;
page
.
EngineType
=
srcPage
.
EngineType
;
page
.
PageType
=
srcPage
.
PageType
;
page
.
TemplateID
=
srcPage
.
TemplateID
;
page
.
ThumbnailBitmap
=
srcPage
.
ThumbnailBitmap
;
page
.
PluginID
=
srcPage
.
PluginID
;
page
.
PluginName
=
srcPage
.
PluginName
;
page
.
ConnGroupID
=
srcPage
.
ConnGroupID
;
page
.
SceneInfo
=
srcPage
.
SceneInfo
;
page
.
PageNum
=
this
.
SelectedPageGroupModel
.
Pages
.
Max
(
p
=>
p
.
PageNum
)
+
1
;
// 将模板控制对象拷贝值页控制对象
this
.
controlObjectService
.
CopyControlObjects
(
srcPage
.
PageID
,
page
.
PageID
);
// 将模板控制字段拷贝至页控制字段
this
.
controlObjectService
.
CopyControlFields
(
srcPage
.
PageID
,
page
.
PageID
);
// 添加页
this
.
SelectedPageGroupModel
.
Pages
.
Add
(
page
);
// 获取缩略图
if
(
page
.
ThumbnailBitmap
==
null
)
{
ThreadHelper
.
SafeRun
(()
=>
...
...
@@ -523,10 +608,11 @@ namespace VIZ.Package.Module
if
(
group
==
null
)
return
;
this
.
SelectedPageGroupModel
=
group
;
this
.
SelectedPageModel
=
page
;
ApplicationDomainEx
.
CurrentPage
=
page
;
this
.
OpenPage
();
PageOpenMessage
msg
=
new
PageOpenMessage
();
msg
.
Page
=
page
;
ApplicationDomainEx
.
MessageManager
.
Send
(
msg
);
}
/// <summary>
...
...
@@ -556,5 +642,10 @@ namespace VIZ.Package.Module
{
this
.
ConnGroups
=
ApplicationDomainEx
.
ConnGroups
;
}
// ======================================================================================
// Private Function
// ======================================================================================
}
}
VIZ.Package.Module/Page/Templage/Service/IPageTemplateService.cs
View file @
b5d858a0
...
...
@@ -16,7 +16,7 @@ namespace VIZ.Package.Module
/// <summary>
/// 添加场景模板
/// </summary>
/// <param name="fileModel
">文件模型
</param>
void
AddSceneTemplate
(
GHResourceFileModel
fileModel
);
/// <param name="fileModel
s">文件模型集合
</param>
void
AddSceneTemplate
(
List
<
GHResourceFileModel
>
fileModels
);
}
}
VIZ.Package.Module/Page/Templage/View/PageTemplateView.xaml
View file @
b5d858a0
...
...
@@ -27,8 +27,8 @@
</UserControl.Resources>
<Grid IsEnabled="{Binding Path=IsEnabled}" Margin="0,10,0,10">
<dxg:GridControl ItemsSource="{Binding Path=SceneTemplateModels}" ShowBorder="False"
SelectedItem
="{Binding Path=SelectedSceneTemplateModel,Mode=TwoWay
}">
<dxg:GridControl ItemsSource="{Binding Path=SceneTemplateModels}" ShowBorder="False"
SelectionMode="Row"
SelectedItem
s="{Binding Path=SelectedSceneTemplateModels,Mode=OneWayToSource
}">
<dxg:GridControl.ContextMenu>
<ContextMenu>
<MenuItem Header="打开" Command="{Binding Path=PlacementTarget.DataContext.OpenScenePageCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>
...
...
VIZ.Package.Module/Page/Templage/ViewModel/PageTemplateViewModel.cs
View file @
b5d858a0
using
DevExpress.Xpf.Core
;
using
log4net
;
using
System
;
using
System.Collections
;
using
System.Collections.Generic
;
using
System.Collections.ObjectModel
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Web.UI
;
using
System.Windows.Controls.Primitives
;
using
VIZ.Framework.Core
;
using
VIZ.Package.Domain
;
...
...
@@ -62,6 +64,11 @@ namespace VIZ.Package.Module
// ======================================================================================
/// <summary>
/// 页视图模型辅助类
/// </summary>
private
PageViewModelHelper
pageViewModelHelper
=
new
PageViewModelHelper
();
/// <summary>
/// GH服务
/// </summary>
private
GHService
ghService
=
new
GHService
();
...
...
@@ -86,6 +93,11 @@ namespace VIZ.Package.Module
/// </summary>
private
ControlObjectService
controlObjectService
=
new
ControlObjectService
();
/// <summary>
/// Viz控制对象下载服务
/// </summary>
private
VizControlObjectDownloadService
vizControlObjectDownloadService
=
new
VizControlObjectDownloadService
();
// ======================================================================================
// Property
// ======================================================================================
...
...
@@ -132,16 +144,16 @@ namespace VIZ.Package.Module
#
endregion
#
region
SelectedSceneTemplateModel
--
当前选中的场景模板模型
#
region
SelectedSceneTemplateModel
s
--
当前选中的场景模板集合
private
PageTemplateModel
selectedSceneTemplateModel
;
private
IList
selectedSceneTemplateModels
;
/// <summary>
/// 当前选中的场景模板
模型
/// 当前选中的场景模板
集合
/// </summary>
public
PageTemplateModel
SelectedSceneTemplateModel
public
IList
SelectedSceneTemplateModels
{
get
{
return
selectedSceneTemplateModel
;
}
set
{
selectedSceneTemplateModel
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectedSceneTemplateModel
));
}
get
{
return
selectedSceneTemplateModel
s
;
}
set
{
selectedSceneTemplateModel
s
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectedSceneTemplateModels
));
}
}
#
endregion
...
...
@@ -162,14 +174,17 @@ namespace VIZ.Package.Module
/// </summary>
private
void
AddToPageGroup
()
{
if
(
this
.
SelectedSceneTemplateModel
==
null
)
if
(
this
.
SelectedSceneTemplateModel
s
==
null
||
this
.
SelectedSceneTemplateModels
.
Count
==
0
)
return
;
IPageGroupService
service
=
ApplicationDomainEx
.
ServiceManager
.
GetService
<
IPageGroupService
>(
ViewServiceKeys
.
PAGE_GROUP_SERVICE
);
if
(
service
==
null
)
return
;
service
.
AddPage
(
this
.
SelectedSceneTemplateModel
);
foreach
(
PageTemplateModel
template
in
this
.
SelectedSceneTemplateModels
)
{
service
.
AddPage
(
template
);
}
}
#
endregion
...
...
@@ -186,16 +201,23 @@ namespace VIZ.Package.Module
/// </summary>
private
void
OpenScenePage
()
{
if
(
this
.
SelectedSceneTemplateModel
==
null
)
if
(
this
.
SelectedSceneTemplateModel
s
==
null
||
this
.
SelectedSceneTemplateModels
.
Count
==
0
)
return
;
if
(
ApplicationDomainEx
.
CurrentPage
==
this
.
SelectedSceneTemplateModel
)
return
;
PageTemplateModel
template
=
this
.
SelectedSceneTemplateModels
[
0
]
as
PageTemplateModel
;
this
.
OpenScenePage
(
template
);
}
ApplicationDomainEx
.
CurrentPage
=
this
.
SelectedSceneTemplateModel
;
/// <summary>
/// 打开模板
/// </summary>
/// <param name="page">页</param>
private
void
OpenScenePage
(
PageModelBase
page
)
{
ApplicationDomainEx
.
CurrentPage
=
page
;
PageOpenMessage
msg
=
new
PageOpenMessage
();
msg
.
Page
=
this
.
SelectedSceneTemplateModel
;
msg
.
Page
=
page
;
ApplicationDomainEx
.
MessageManager
.
Send
(
msg
);
}
...
...
@@ -213,41 +235,27 @@ namespace VIZ.Package.Module
/// </summary>
private
void
Update
()
{
if
(
this
.
SelectedSceneTemplateModel
==
null
)
return
;
IFieldTreeService
service
=
ApplicationDomainEx
.
ServiceManager
.
GetService
<
IFieldTreeService
>(
ViewServiceKeys
.
FIELD_TREE_SERVICE
);
if
(
service
==
null
)
if
(
this
.
SelectedSceneTemplateModels
==
null
||
this
.
SelectedSceneTemplateModels
.
Count
==
0
)
return
;
this
.
IsLoading
=
true
;
ThreadHelper
.
SafeRun
(
action
:
()
=>
List
<
PageModelBase
>
templates
=
new
List
<
PageModelBase
>();
foreach
(
PageTemplateModel
template
in
this
.
SelectedSceneTemplateModels
)
{
// 重新加载版子
this
.
vizCommandService
.
Reload
(
ApplicationDomainEx
.
PreviewConn
,
this
.
SelectedSceneTemplateModel
.
ScenePath
);
// 获取控制对象
ControlObjectModel
controlObject
=
this
.
vizCommandControlObjectService
.
GetControlObject
(
ApplicationDomainEx
.
PreviewConn
);
templates
.
Add
(
template
);
}
// 将控制字段写入数据库
this
.
controlObjectService
.
SaveControlFields
(
this
.
SelectedSceneTemplateModel
,
controlObject
.
AllFiledNodes
);
;
// 开始下载图片
this
.
pageViewModelHelper
.
BeginDownLoadIamge
(
templates
)
;
// 如果当前打开的项目是该模板,那么从新打开
if
(
ApplicationDomainEx
.
CurrentPage
==
this
.
SelectedSceneTemplateModel
)
{
WPFHelper
.
Invoke
(()
=>
{
this
.
OpenScenePage
();
});
}
},
final
:
()
=>
// 开始下载控制对象
this
.
pageViewModelHelper
.
BeginDownLoadControlObject
(
templates
,
()
=>
{
WPFHelper
.
BeginInvoke
(()
=>
{
this
.
IsLoading
=
false
;
});
// 控制对象下载完成后打开最后一个模板
PageModelBase
last
=
templates
.
LastOrDefault
();
if
(
last
==
null
)
return
;
this
.
OpenScenePage
(
last
);
});
}
...
...
@@ -265,13 +273,21 @@ namespace VIZ.Package.Module
/// </summary>
private
void
Delete
()
{
if
(
this
.
SelectedSceneTemplateModel
==
null
)
if
(
this
.
SelectedSceneTemplateModel
s
==
null
||
this
.
SelectedSceneTemplateModels
.
Count
==
0
)
return
;
if
(
DXMessageBox
.
Show
(
$"是否删除模板
【
{
this
.
SelectedSceneTemplateModel
.
Scene
}
】
?"
,
"提示"
,
System
.
Windows
.
MessageBoxButton
.
YesNo
)
!=
System
.
Windows
.
MessageBoxResult
.
Yes
)
if
(
DXMessageBox
.
Show
(
$"是否删除模板?"
,
"提示"
,
System
.
Windows
.
MessageBoxButton
.
YesNo
)
!=
System
.
Windows
.
MessageBoxResult
.
Yes
)
return
;
this
.
SceneTemplateModels
.
Remove
(
this
.
SelectedSceneTemplateModel
);
List
<
PageTemplateModel
>
templates
=
new
List
<
PageTemplateModel
>();
foreach
(
PageTemplateModel
template
in
this
.
SelectedSceneTemplateModels
)
{
templates
.
Add
(
template
);
}
foreach
(
PageTemplateModel
template
in
templates
)
{
this
.
SceneTemplateModels
.
Remove
(
template
);
}
}
#
endregion
...
...
@@ -288,7 +304,6 @@ namespace VIZ.Package.Module
{
this
.
IsEnabled
=
true
;
this
.
SceneTemplateModels
=
null
;
this
.
SelectedSceneTemplateModel
=
null
;
this
.
IsLoading
=
true
;
ThreadHelper
.
SafeRun
(()
=>
...
...
@@ -296,17 +311,6 @@ namespace VIZ.Package.Module
// 场景模板
var
sceneTemplateModels
=
this
.
pageService
.
LoadPageTemplates
().
ToObservableCollection
();
// 其他模板
var
otherTemplateModels
=
new
ObservableCollection
<
PageTemplateModel
>();
// 命令模板
PageTemplateModel
cmd
=
new
PageTemplateModel
();
cmd
.
PageType
=
PageType
.
Command
;
cmd
.
Remark
=
"命令模板"
;
cmd
.
EngineType
=
EngineType
.
Viz
;
cmd
.
ThumbnailBitmap
=
VIZ
.
Package
.
Module
.
Resource
.
Properties
.
Resources
.
cmd_template
;
otherTemplateModels
.
Add
(
cmd
);
// 更新界面
WPFHelper
.
BeginInvoke
(()
=>
{
...
...
@@ -316,15 +320,7 @@ namespace VIZ.Package.Module
});
// 获取场景模板缩略图
foreach
(
var
model
in
sceneTemplateModels
)
{
var
bitmap
=
ghService
.
GetImage
(
model
.
ThumbnailUri
);
WPFHelper
.
BeginInvoke
(()
=>
{
model
.
ThumbnailBitmap
=
bitmap
;
});
}
this
.
pageViewModelHelper
.
BeginDownLoadIamge
(
sceneTemplateModels
.
ToList
<
PageModelBase
>());
});
}
...
...
@@ -337,7 +333,6 @@ namespace VIZ.Package.Module
this
.
IsEnabled
=
false
;
this
.
IsLoading
=
false
;
this
.
SceneTemplateModels
=
null
;
this
.
SelectedSceneTemplateModel
=
null
;
}
/// <summary>
...
...
@@ -356,37 +351,48 @@ namespace VIZ.Package.Module
/// <summary>
/// 添加场景模板
/// </summary>
/// <param name="fileModel
">文件模型
</param>
public
void
AddSceneTemplate
(
GHResourceFileModel
fileModel
)
/// <param name="fileModel
s">文件模型集合
</param>
public
void
AddSceneTemplate
(
List
<
GHResourceFileModel
>
fileModels
)
{
// 如果场景中已经拥有该模板,那么不处理
if
(
this
.
SceneTemplateModels
.
Any
(
p
=>
p
.
Scene
==
fileModel
.
Name
))
return
;
List
<
PageModelBase
>
list
=
new
List
<
PageModelBase
>();
PageTemplateModel
model
=
new
PageTemplateModel
();
model
.
TemplateID
=
Guid
.
NewGuid
();
model
.
Scene
=
fileModel
.
Name
;
model
.
ScenePath
=
fileModel
.
Path
;
model
.
Layer
=
VizLayer
.
MAIN_LAYER
;
model
.
PageType
=
PageType
.
Scene
;
model
.
EngineType
=
EngineType
.
Viz
;
model
.
ThumbnailUri
=
fileModel
.
Thumbnail
;
model
.
ThumbnailBitmap
=
fileModel
.
ThumbnailBitmap
;
// 获取缩略图
if
(
model
.
ThumbnailBitmap
==
null
)
foreach
(
GHResourceFileModel
fileModel
in
fileModels
)
{
ThreadHelper
.
SafeRun
(()
=>
{
var
bitmap
=
this
.
ghService
.
GetImage
(
model
.
ThumbnailUri
);
WPFHelper
.
BeginInvoke
(()
=>
{
model
.
ThumbnailBitmap
=
bitmap
;
});
});
// 如果场景中已经拥有该模板,那么不处理
if
(
this
.
SceneTemplateModels
.
Any
(
p
=>
p
.
Scene
==
fileModel
.
Name
))
continue
;
PageTemplateModel
model
=
new
PageTemplateModel
();
model
.
TemplateID
=
Guid
.
NewGuid
();
model
.
Scene
=
fileModel
.
Name
;
model
.
ScenePath
=
fileModel
.
Path
;
model
.
Layer
=
VizLayer
.
MAIN_LAYER
;
model
.
PageType
=
PageType
.
Scene
;
model
.
EngineType
=
EngineType
.
Viz
;
model
.
ThumbnailUri
=
fileModel
.
Thumbnail
;
model
.
ThumbnailBitmap
=
fileModel
.
ThumbnailBitmap
;
list
.
Add
(
model
);
this
.
SceneTemplateModels
.
Add
(
model
);
}
this
.
SceneTemplateModels
.
Add
(
model
);
// 开始下载缩略图
this
.
pageViewModelHelper
.
BeginDownLoadIamge
(
list
);
// 开始下载控制对象
this
.
pageViewModelHelper
.
BeginDownLoadControlObject
(
list
,
()
=>
{
// 控制对象下载完成后打开最后一个模板
PageModelBase
last
=
list
.
LastOrDefault
();
if
(
last
==
null
)
return
;
this
.
OpenScenePage
(
last
);
});
}
// ======================================================================================
// Private Function
// ======================================================================================
}
}
\ No newline at end of file
VIZ.Package.Module/Plugin/ViewModel/PluginViewModel.cs
View file @
b5d858a0
...
...
@@ -203,14 +203,17 @@ namespace VIZ.Package.Module
/// <param name="msg">消息</param>
private
void
OnPageDeleteMessage
(
PageDeleteMessage
msg
)
{
if
(
msg
.
Page
==
null
)
if
(
msg
.
Page
s
==
null
||
msg
.
Pages
.
Count
==
0
)
return
;
PluginNavigationConfig
config
=
this
.
ItemsSource
.
FirstOrDefault
(
p
=>
p
.
PageModel
==
msg
.
Page
);
if
(
config
==
null
)
return
;
foreach
(
PageModelBase
page
in
msg
.
Pages
)
{
PluginNavigationConfig
config
=
this
.
ItemsSource
.
FirstOrDefault
(
p
=>
p
.
PageModel
==
page
);
if
(
config
==
null
)
return
;
this
.
ItemsSource
.
Remove
(
config
);
this
.
ItemsSource
.
Remove
(
config
);
}
}
/// <summary>
...
...
VIZ.Package.Module/Resource/GHResource/ViewModel/GHSceneViewModel.cs
View file @
b5d858a0
...
...
@@ -57,10 +57,12 @@ namespace VIZ.Package.Module
if
(
service
==
null
)
return
;
List
<
GHResourceFileModel
>
list
=
new
List
<
GHResourceFileModel
>();
foreach
(
GHResourceFileModel
file
in
this
.
SelectedFileModels
)
{
service
.
AddSceneTemplate
(
file
);
list
.
Add
(
file
);
}
service
.
AddSceneTemplate
(
list
);
}
#
endregion
...
...
VIZ.Package.Module/Setting/Conn/ViewModel/ConnSettingViewModel.cs
View file @
b5d858a0
...
...
@@ -242,8 +242,8 @@ namespace VIZ.Package.Module
{
// 保存配置
this
.
connService
.
SaveGroups
(
this
.
Groups
);
ApplicationDomainEx
.
ConnGroups
=
this
.
Groups
.
ToList
(
);
ApplicationDomainEx
.
ConnGroups
.
Clear
();
ApplicationDomainEx
.
ConnGroups
.
AddRange
(
this
.
Groups
.
ToList
()
);
// 发送连接改变消息
ConnChangedMessage
msg
=
new
ConnChangedMessage
();
...
...
VIZ.Package.Module/Task/PackageTask/ViewModel/PackageTaskViewModel.cs
View file @
b5d858a0
...
...
@@ -137,10 +137,10 @@ namespace VIZ.Package.Module
/// <param name="msg">消息</param>
private
void
OnPageDeleteMessage
(
PageDeleteMessage
msg
)
{
if
(
msg
.
Page
==
null
)
if
(
msg
.
Page
s
==
null
||
msg
.
Pages
.
Count
==
0
)
return
;
var
query
=
this
.
ItemsSource
.
Where
(
p
=>
p
.
PageModel
==
msg
.
Page
).
ToList
();
var
query
=
this
.
ItemsSource
.
Where
(
p
=>
msg
.
Pages
.
Contains
(
p
.
PageModel
)
).
ToList
();
foreach
(
PackageTaskModel
task
in
query
)
{
this
.
Cancel
(
task
);
...
...
@@ -221,8 +221,8 @@ namespace VIZ.Package.Module
/// <param name="task">任务</param>
private
void
ExecuteTask
(
PackageTaskModel
task
)
{
// 任务没有在运行状态 || 任务不可以执行
if
(!
task
.
IsRunning
||
!
task
.
CanExecute
)
// 任务没有在运行状态 || 任务不可以执行
|| 正在加载场景
if
(!
task
.
IsRunning
||
!
task
.
CanExecute
||
ApplicationDomainEx
.
IsSceneLoading
)
return
;
List
<
string
>
updateMessage
=
new
List
<
string
>();
...
...
VIZ.Package.Module/VIZ.Package.Module.csproj
View file @
b5d858a0
...
...
@@ -50,16 +50,16 @@
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="DevExpress.Data.Desktop.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Data.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Mvvm.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Printing.v22.
1.Core, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Core.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Core.v22.
1.Extensions, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Docking.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.
1.Core, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.
1.Extensions, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Data.Desktop.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Data.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Mvvm.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Printing.v22.
2.Core, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Core.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Core.v22.
2.Extensions, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Docking.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.
2.Core, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.
2.Extensions, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="LiteDB, Version=5.0.15.0, Culture=neutral, PublicKeyToken=4ee40123013c9f27, processorArchitecture=MSIL">
<HintPath>..\packages\LiteDB.5.0.15\lib\net45\LiteDB.dll</HintPath>
</Reference>
...
...
@@ -118,6 +118,10 @@
<Compile Include="ControlObject\FieldEdit\ViewModel\FieldEditViewModelBase.cs" />
<Compile Include="ControlObject\FieldTree\Service\IFieldTreeService.cs" />
<Compile Include="Log\ViewModel\VizCommandWindowModel.cs" />
<Compile Include="Page\Core\Helper\PageViewModelHelper.cs" />
<Compile Include="Page\Core\View\PageLoadingWindow.xaml.cs">
<DependentUpon>PageLoadingWindow.xaml</DependentUpon>
</Compile>
<Compile Include="Main\ViewModel\MainConnViewModel.cs" />
<Compile Include="Main\View\MainConnView.xaml.cs">
<DependentUpon>MainConnView.xaml</DependentUpon>
...
...
@@ -412,6 +416,10 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Page\Core\View\PageLoadingWindow.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Main\View\MainConnView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
...
...
VIZ.Package.Module/VIZ.Package.Module.csproj.bak
0 → 100644
View file @
b5d858a0
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{6FD4C0F0-8A00-4DB8-924B-A3CD9A45297F}</ProjectGuid>
<OutputType>library</OutputType>
<RootNamespace>VIZ.Package.Module</RootNamespace>
<AssemblyName>VIZ.Package.Module</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="DevExpress.Data.Desktop.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Data.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Mvvm.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Printing.v22.1.Core, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Core.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Core.v22.1.Extensions, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Docking.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.1.Core, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Grid.v22.1.Extensions, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="LiteDB, Version=5.0.15.0, Culture=neutral, PublicKeyToken=4ee40123013c9f27, processorArchitecture=MSIL">
<HintPath>..\packages\LiteDB.5.0.15\lib\net45\LiteDB.dll</HintPath>
</Reference>
<Reference Include="log4net, Version=2.0.14.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>..\packages\log4net.2.0.14\lib\net45\log4net.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="WindowsFormsIntegration" />
</ItemGroup>
<ItemGroup>
<Compile Include="ControlObject\FieldEdit\Edit\FloatEdit\FloatEditPanel.xaml.cs">
<DependentUpon>FloatEditPanel.xaml</DependentUpon>
</Compile>
<Compile Include="ControlObject\FieldEdit\Edit\FloatEdit\FloatEditPanelModel.cs" />
<Compile Include="ControlObject\FieldEdit\Edit\FontEdit\FontEditPanel.xaml.cs">
<DependentUpon>FontEditPanel.xaml</DependentUpon>
</Compile>
<Compile Include="ControlObject\FieldEdit\Edit\FontEdit\FontEditPanelModel.cs" />
<Compile Include="ControlObject\FieldEdit\Edit\ListEdit\CellEdit\FloatListCellEdit.xaml.cs">
<DependentUpon>FloatListCellEdit.xaml</DependentUpon>
</Compile>
<Compile Include="ControlObject\FieldEdit\Edit\ListEdit\CellEdit\FontListCellEdit.xaml.cs">
<DependentUpon>FontListCellEdit.xaml</DependentUpon>
</Compile>
<Compile Include="Control\Service\IControlService.cs" />
<Compile Include="Log\ViewModel\ErrorLogWindowModel.cs" />
<Compile Include="Log\View\ErrorLogWindow.xaml.cs">
<DependentUpon>ErrorLogWindow.xaml</DependentUpon>
</Compile>
<Compile Include="Help\About\View\AboutWindow.xaml.cs">
<DependentUpon>AboutWindow.xaml</DependentUpon>
</Compile>
<Compile Include="Help\About\ViewModel\AboutWindowModel.cs" />
<Compile Include="ControlObject\FieldEdit\Edit\ResourceEdit\MHResourceEditPartModel.cs" />
<Compile Include="ControlObject\FieldEdit\Service\IFieldEditService.cs" />
<Compile Include="ControlObject\FieldEdit\ViewModel\FieldEditViewModelBase.cs" />
<Compile Include="ControlObject\FieldTree\Service\IFieldTreeService.cs" />
<Compile Include="Log\ViewModel\VizCommandWindowModel.cs" />
<Compile Include="Page\Core\Helper\PageViewModelHelper.cs" />
<Compile Include="Page\Core\View\PageLoadingWindow.xaml.cs">
<DependentUpon>PageLoadingWindow.xaml</DependentUpon>
</Compile>
<Compile Include="Main\ViewModel\MainConnViewModel.cs" />
<Compile Include="Main\View\MainConnView.xaml.cs">
<DependentUpon>MainConnView.xaml</DependentUpon>
</Compile>
<Compile Include="Main\ViewModel\MainStatusViewModel.cs" />
<Compile Include="Main\View\MainStatusView.xaml.cs">
<DependentUpon>MainStatusView.xaml</DependentUpon>
</Compile>
<Compile Include="Page\Group\Widgets\PageNumberEdit.xaml.cs">
<DependentUpon>PageNumberEdit.xaml</DependentUpon>
</Compile>
<Compile Include="Plugin\Model\PluginNavigationConfig.cs" />
<Compile Include="Plugin\Service\IPluginService.cs" />
<Compile Include="ProjectManager\ViewModel\SaveProjectWindowModel.cs" />
<Compile Include="ProjectManager\ViewModel\ProjectTreePanelModel.cs" />
<Compile Include="ProjectManager\View\SaveProjectWindow.xaml.cs">
<DependentUpon>SaveProjectWindow.xaml</DependentUpon>
</Compile>
<Compile Include="ProjectManager\View\OpenProjectWindow.xaml.cs">
<DependentUpon>OpenProjectWindow.xaml</DependentUpon>
</Compile>
<Compile Include="ProjectManager\ViewModel\OpenProjectWindowModel.cs" />
<Compile Include="ProjectManager\View\ProjectTreePanel.xaml.cs">
<DependentUpon>ProjectTreePanel.xaml</DependentUpon>
</Compile>
<Compile Include="Resource\MediaResource\Controller\Model\ms.cs" />
<Compile Include="Resource\MediaResource\Core\MHResourceFileDoubleClickEventArgs.cs" />
<Compile Include="Resource\MediaResource\Core\MHResourceSelectedFileChangedEventArgs.cs" />
<Compile Include="Setting\Conn\View\ConnSettingView.xaml.cs">
<DependentUpon>ConnSettingView.xaml</DependentUpon>
</Compile>
<Compile Include="Setting\Conn\ConnPluginLifeCycle.cs" />
<Compile Include="Setting\Conn\ViewModel\ConnSettingViewModel.cs" />
<Compile Include="ControlObject\FieldEdit\Core\FieldEditMode.cs" />
<Compile Include="ControlObject\FieldEdit\Edit\BooleanEdit\BooleanEditPanel.xaml.cs">
<DependentUpon>BooleanEditPanel.xaml</DependentUpon>
</Compile>
<Compile Include="ControlObject\FieldEdit\Edit\BooleanEdit\BooleanEditPanelModel.cs" />
<Compile Include="ControlObject\FieldEdit\Edit\DupletEdit\DupletEditPanel.xaml.cs">
<DependentUpon>DupletEditPanel.xaml</DependentUpon>
</Compile>
<Compile Include="ControlObject\FieldEdit\Edit\DupletEdit\DupletEditPanelModel.cs" />
<Compile Include="ControlObject\FieldEdit\Edit\DupletEdit\Enum\DupletEditPanelMode.cs" />
<Compile Include="ControlObject\FieldEdit\Edit\DupletEdit\Enum\DupletEditPanelValue.cs" />
<Compile Include="ControlObject\FieldEdit\Edit\EditPanelModelBase.cs" />
<Compile Include="ControlObject\FieldEdit\Edit\ImageEdit\ImageEditPanelModel.cs" />
<Compile Include="ControlObject\FieldEdit\Edit\IntegerEdit\IntegerEditPanel.xaml.cs">
<DependentUpon>IntegerEditPanel.xaml</DependentUpon>
</Compile>
<Compile Include="ControlObject\FieldEdit\Edit\IntegerEdit\IntegerEditPanelModel.cs" />
<Compile Include="ControlObject\FieldEdit\Edit\ListEdit\CellEdit\RichTextListCellEdit.xaml.cs">
<DependentUpon>RichTextListCellEdit.xaml</DependentUpon>
</Compile>
<Compile Include="ControlObject\FieldEdit\Edit\ListEdit\CellEdit\TripletListCellEdit.xaml.cs">
<DependentUpon>TripletListCellEdit.xaml</DependentUpon>
</Compile>
<Compile Include="ControlObject\FieldEdit\Edit\ListEdit\CellEdit\IntegerListCellEdit.xaml.cs">
<DependentUpon>IntegerListCellEdit.xaml</DependentUpon>
</Compile>
<Compile Include="ControlObject\FieldEdit\Edit\ListEdit\CellEdit\BooleanListCellEdit.xaml.cs">
<DependentUpon>BooleanListCellEdit.xaml</DependentUpon>
</Compile>
<Compile Include="ControlObject\FieldEdit\Edit\ListEdit\CellEdit\ImageListCellEdit.xaml.cs">
<DependentUpon>ImageListCellEdit.xaml</DependentUpon>
</Compile>
<Compile Include="ControlObject\FieldEdit\Edit\ListEdit\CellEdit\DupletListCellEdit.xaml.cs">
<DependentUpon>DupletListCellEdit.xaml</DependentUpon>
</Compile>
<Compile Include="ControlObject\FieldEdit\Edit\ListEdit\ListCellEditBase.cs" />
<Compile Include="ControlObject\FieldEdit\Edit\ListEdit\ListEditPanelCellTemplateSelector.cs" />
<Compile Include="ControlObject\FieldEdit\Edit\ListEdit\ListEditPanelModel.cs" />
<Compile Include="ControlObject\FieldEdit\Edit\ResourceEdit\GHResourceEditPartModel.cs" />
<Compile Include="ControlObject\FieldEdit\Edit\ResourceEdit\ResourceEditPanelModelBase.cs" />
<Compile Include="ControlObject\FieldEdit\Edit\RichTextEdit\RichTextEditPanel.xaml.cs">
<DependentUpon>RichTextEditPanel.xaml</DependentUpon>
</Compile>
<Compile Include="ControlObject\FieldEdit\Edit\RichTextEdit\RichTextEditPanelModel.cs" />
<Compile Include="ControlObject\FieldEdit\Edit\TextEdit\TextEditPanelModel.cs" />
<Compile Include="ControlObject\FieldEdit\Edit\TripletEdit\Enum\TripletEditPanelMode.cs" />
<Compile Include="ControlObject\FieldEdit\Edit\TripletEdit\TripletEditPanelModel.cs" />
<Compile Include="ControlObject\FieldEdit\Edit\TripletEdit\TripletEditPanel.xaml.cs">
<DependentUpon>TripletEditPanel.xaml</DependentUpon>
</Compile>
<Compile Include="ControlObject\FieldEdit\Edit\TripletEdit\Enum\TripletEditPanelValue.cs" />
<Compile Include="ControlObject\FieldEdit\FieldEditPluginLifeCycle.cs" />
<Compile Include="ControlObject\FieldEdit\ViewModel\FieldEditViewModel.cs" />
<Compile Include="ControlObject\FieldEdit\ViewModel\FieldEditWindowModel.cs" />
<Compile Include="ControlObject\FieldTree\FieldTreePluginLifeCycle.cs" />
<Compile Include="ControlObject\FieldTree\ViewModel\FieldTreeViewModel.cs" />
<Compile Include="Control\ControlPluginLifeCycle.cs" />
<Compile Include="Control\ViewModel\ControlViewModel.cs" />
<Compile Include="Control\View\ControlView.xaml.cs">
<DependentUpon>ControlView.xaml</DependentUpon>
</Compile>
<Compile Include="Debug\ViewModel\DebugViewModel.cs" />
<Compile Include="Debug\View\DebugWindow.xaml.cs">
<DependentUpon>DebugWindow.xaml</DependentUpon>
</Compile>
<Compile Include="ControlObject\FieldTree\View\FieldTreeView.xaml.cs">
<DependentUpon>FieldTreeView.xaml</DependentUpon>
</Compile>
<Compile Include="ControlObject\FieldEdit\View\FieldEditView.xaml.cs">
<DependentUpon>FieldEditView.xaml</DependentUpon>
</Compile>
<Compile Include="ControlObject\FieldEdit\Edit\ImageEdit\ImageEditPanel.xaml.cs">
<DependentUpon>ImageEditPanel.xaml</DependentUpon>
</Compile>
<Compile Include="ControlObject\FieldEdit\Edit\ListEdit\ListEditPanel.xaml.cs">
<DependentUpon>ListEditPanel.xaml</DependentUpon>
</Compile>
<Compile Include="ControlObject\FieldEdit\View\FieldEditWindow.xaml.cs">
<DependentUpon>FieldEditWindow.xaml</DependentUpon>
</Compile>
<Compile Include="Main\ViewModel\MainTopViewModel.cs" />
<Compile Include="Plugin\PluginPluginLifeCycle.cs" />
<Compile Include="Plugin\ViewModel\PluginViewModel.cs" />
<Compile Include="Plugin\View\PluginView.xaml.cs">
<DependentUpon>PluginView.xaml</DependentUpon>
</Compile>
<Compile Include="Resource\GHResource\Core\GHResourceFileDoubleClickEventArgs.cs" />
<Compile Include="Resource\GHResource\Core\GHResourceSelectedFileChangedEventArgs.cs" />
<Compile Include="Resource\MediaResource\Controller\IMediaResourceFileSupport.cs" />
<Compile Include="Resource\MediaResource\Controller\MediaResourceFileController.cs" />
<Compile Include="Resource\MediaResource\Controller\MediaResourceFileService.cs" />
<Compile Include="Resource\MediaResource\Controller\Model\fileListResult.cs" />
<Compile Include="Resource\MediaResource\Controller\Model\fileUploadResult.cs" />
<Compile Include="Resource\MediaResource\Controller\ThumbnailHelper.cs" />
<Compile Include="Resource\MediaResource\MediaResourcePluginLifeCycle.cs" />
<Compile Include="Resource\MediaResource\ViewModel\CreateFolderViewModel.cs" />
<Compile Include="Resource\MediaResource\ViewModel\MediaResourcePanelViewModel.cs" />
<Compile Include="Resource\MediaResource\ViewModel\MediaResourceViewModel.cs" />
<Compile Include="Resource\MediaResource\View\CreateFolder.xaml.cs">
<DependentUpon>CreateFolder.xaml</DependentUpon>
</Compile>
<Compile Include="Resource\MediaResource\View\CreateFolderWindow.xaml.cs">
<DependentUpon>CreateFolderWindow.xaml</DependentUpon>
</Compile>
<Compile Include="Resource\MediaResource\View\MediaResourcePanel.xaml.cs">
<DependentUpon>MediaResourcePanel.xaml</DependentUpon>
</Compile>
<Compile Include="Resource\MediaResource\View\MediaResourceView.xaml.cs">
<DependentUpon>MediaResourceView.xaml</DependentUpon>
</Compile>
<Compile Include="Page\Group\ViewModel\PageAddViewModel.cs" />
<Compile Include="Page\Group\View\PageAddWindow.xaml.cs">
<DependentUpon>PageAddWindow.xaml</DependentUpon>
</Compile>
<Compile Include="Page\Group\PageGroupPluginLifeCycle.cs" />
<Compile Include="Page\Group\Service\IPageGroupService.cs" />
<Compile Include="Page\Group\ViewModel\PageGroupRenameViewModel.cs" />
<Compile Include="Page\Group\View\PageGroupRenameWindow.xaml.cs">
<DependentUpon>PageGroupRenameWindow.xaml</DependentUpon>
</Compile>
<Compile Include="Page\Group\ViewModel\PageGroupViewModel.cs" />
<Compile Include="Page\Group\View\PageGroupView.xaml.cs">
<DependentUpon>PageGroupView.xaml</DependentUpon>
</Compile>
<Compile Include="Page\Templage\PageTemplatePluginLifeCycle.cs" />
<Compile Include="Page\Templage\Service\IPageTemplateService.cs" />
<Compile Include="Page\Templage\ViewModel\PageTemplateViewModel.cs" />
<Compile Include="Page\Templage\View\PageTemplateView.xaml.cs">
<DependentUpon>PageTemplateView.xaml</DependentUpon>
</Compile>
<Compile Include="Resource\GHResource\GHScenePluginLifeCycle.cs" />
<Compile Include="Resource\GHResource\ViewModel\GHSceneViewModel.cs" />
<Compile Include="Resource\GHResource\View\GHSceneView.xaml.cs">
<DependentUpon>GHSceneView.xaml</DependentUpon>
</Compile>
<Compile Include="Resource\GHResource\Controller\GHResourceFileController.cs" />
<Compile Include="Resource\GHResource\Core\GHResourceFolderNodeImageSelector.cs" />
<Compile Include="Resource\GHResource\ViewModel\GHResourcePanelModel.cs" />
<Compile Include="Resource\GHResource\View\GHResourcePanel.xaml.cs">
<DependentUpon>GHResourcePanel.xaml</DependentUpon>
</Compile>
<Compile Include="Login\ViewModel\LoginViewModel.cs" />
<Compile Include="Login\View\LoginView.xaml.cs">
<DependentUpon>LoginView.xaml</DependentUpon>
</Compile>
<Compile Include="Main\Service\IMainViewService.cs" />
<Compile Include="Main\View\MainTopView.xaml.cs">
<DependentUpon>MainTopView.xaml</DependentUpon>
</Compile>
<Compile Include="Main\ViewModel\MainViewModel.cs" />
<Compile Include="Main\View\MainView.xaml.cs">
<DependentUpon>MainView.xaml</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<Compile Include="Setting\Core\ViewModel\SettingWindowModel.cs" />
<Compile Include="Setting\Core\View\SettingWindow.xaml.cs">
<DependentUpon>SettingWindow.xaml</DependentUpon>
</Compile>
<Compile Include="Setting\Media\ViewModel\MediaSettingViewModel.cs" />
<Compile Include="Setting\Media\View\MediaSettingView.xaml.cs">
<DependentUpon>MediaSettingView.xaml</DependentUpon>
</Compile>
<Compile Include="Setting\Media\MediaSettingPluginLifeCycle.cs" />
<Compile Include="Setting\PluginMapping\Model\PluginMappingModel.cs" />
<Compile Include="Setting\PluginMapping\PluginMappingSettingPluginLifeCycle.cs" />
<Compile Include="Setting\PluginMapping\ViewModel\PluginMappingSettingViewModel.cs" />
<Compile Include="Setting\PluginMapping\View\PluginMappingSettingView.xaml.cs">
<DependentUpon>PluginMappingSettingView.xaml</DependentUpon>
</Compile>
<Compile Include="Setting\VizConfig\VizConfigSettingPluginLifeCycle.cs" />
<Compile Include="Setting\VizConfig\ViewModel\VizConfigSettingViewModel.cs" />
<Compile Include="Setup\AppSetup_InitLiteDB.cs" />
<Compile Include="Preview\VizPreview\Controller\VizPreviewController.cs" />
<Compile Include="Preview\VizPreview\VizPreviewPluginLifeCycle.cs" />
<Compile Include="Preview\VizPreview\ViewModel\VizPreviewViewModel.cs" />
<Compile Include="Preview\VizPreview\View\VizPreviewView.xaml.cs">
<DependentUpon>VizPreviewView.xaml</DependentUpon>
</Compile>
<Compile Include="ControlObject\FieldEdit\Edit\TextEdit\TextEditPanel.xaml.cs">
<DependentUpon>TextEditPanel.xaml</DependentUpon>
</Compile>
<Compile Include="ControlObject\FieldEdit\Edit\ListEdit\CellEdit\TextListCellEdit.xaml.cs">
<DependentUpon>TextListCellEdit.xaml</DependentUpon>
</Compile>
<Compile Include="Setting\VizConfig\View\VizConfigSettingView.xaml.cs">
<DependentUpon>VizConfigSettingView.xaml</DependentUpon>
</Compile>
<Compile Include="Log\View\VizCommandWindow.xaml.cs">
<DependentUpon>VizCommandWindow.xaml</DependentUpon>
</Compile>
<Compile Include="Task\PackageTask\PackageTaskPluginLifeCycle.cs" />
<Compile Include="Task\PackageTask\Service\IPackageTaskService.cs" />
<Compile Include="Task\PackageTask\ViewModel\PackageTaskViewModel.cs" />
<Compile Include="Task\PackageTask\View\PackageTaskView.xaml.cs">
<DependentUpon>PackageTaskView.xaml</DependentUpon>
</Compile>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="app.config" />
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<Folder Include="Main\Controller\" />
<Folder Include="ProjectManager\Model\" />
</ItemGroup>
<ItemGroup>
<Page Include="ControlObject\FieldEdit\Edit\FloatEdit\FloatEditPanel.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="ControlObject\FieldEdit\Edit\FontEdit\FontEditPanel.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="ControlObject\FieldEdit\Edit\ListEdit\CellEdit\FloatListCellEdit.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="ControlObject\FieldEdit\Edit\ListEdit\CellEdit\FontListCellEdit.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Log\View\ErrorLogWindow.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Help\About\View\AboutWindow.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Page\Core\View\PageLoadingWindow.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Main\View\MainConnView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Main\View\MainStatusView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Page\Group\Widgets\PageNumberEdit.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="ProjectManager\View\SaveProjectWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="ProjectManager\View\OpenProjectWindow.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="ProjectManager\View\ProjectTreePanel.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Setting\Conn\View\ConnSettingView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="ControlObject\FieldEdit\Edit\BooleanEdit\BooleanEditPanel.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="ControlObject\FieldEdit\Edit\DupletEdit\DupletEditPanel.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="ControlObject\FieldEdit\Edit\IntegerEdit\IntegerEditPanel.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="ControlObject\FieldEdit\Edit\ListEdit\CellEdit\RichTextListCellEdit.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="ControlObject\FieldEdit\Edit\ListEdit\CellEdit\TripletListCellEdit.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="ControlObject\FieldEdit\Edit\ListEdit\CellEdit\IntegerListCellEdit.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="ControlObject\FieldEdit\Edit\ListEdit\CellEdit\BooleanListCellEdit.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="ControlObject\FieldEdit\Edit\ListEdit\CellEdit\ImageListCellEdit.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="ControlObject\FieldEdit\Edit\ListEdit\CellEdit\DupletListCellEdit.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="ControlObject\FieldEdit\Edit\RichTextEdit\RichTextEditPanel.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="ControlObject\FieldEdit\Edit\TripletEdit\TripletEditPanel.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Control\View\ControlView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Debug\View\DebugWindow.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="ControlObject\FieldTree\View\FieldTreeView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="ControlObject\FieldEdit\View\FieldEditView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="ControlObject\FieldEdit\Edit\ImageEdit\ImageEditPanel.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="ControlObject\FieldEdit\Edit\ListEdit\ListEditPanel.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="ControlObject\FieldEdit\View\FieldEditWindow.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Plugin\View\PluginView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Resource\MediaResource\View\CreateFolder.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Resource\MediaResource\View\CreateFolderWindow.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Resource\MediaResource\View\MediaResourcePanel.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Resource\MediaResource\View\MediaResourceView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Page\Group\View\PageAddWindow.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Page\Group\View\PageGroupRenameWindow.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Page\Group\View\PageGroupView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Page\Templage\View\PageTemplateView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Resource\GHResource\View\GHSceneView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Resource\GHResource\View\GHResourcePanel.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Login\View\LoginView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Main\View\MainTopView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Main\View\MainView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Preview\VizPreview\View\VizPreviewView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="ControlObject\FieldEdit\Edit\TextEdit\TextEditPanel.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="ControlObject\FieldEdit\Edit\ListEdit\CellEdit\TextListCellEdit.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Setting\Core\View\SettingWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Setting\Media\View\MediaSettingView.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Setting\PluginMapping\View\PluginMappingSettingView.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Task\PackageTask\View\PackageTaskView.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Themes\Generic.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Setting\VizConfig\View\VizConfigSettingView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Log\View\VizCommandWindow.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Common.Resource\VIZ.Framework.Common.Resource.csproj">
<Project>{76ef480a-e486-41b7-b7a5-2a849fc8d5bf}</Project>
<Name>VIZ.Framework.Common.Resource</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Common\VIZ.Framework.Common.csproj">
<Project>{92834c05-703e-4f05-9224-f36220939d8f}</Project>
<Name>VIZ.Framework.Common</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Connection\VIZ.Framework.Connection.csproj">
<Project>{e07528dd-9dee-47c2-b79d-235ecfa6b003}</Project>
<Name>VIZ.Framework.Connection</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Core\VIZ.Framework.Core.csproj">
<Project>{75b39591-4bc3-4b09-bd7d-ec9f67efa96e}</Project>
<Name>VIZ.Framework.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Domain\VIZ.Framework.Domain.csproj">
<Project>{28661e82-c86a-4611-a028-c34f6ac85c97}</Project>
<Name>VIZ.Framework.Domain</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Module\VIZ.Framework.Module.csproj">
<Project>{47cf6fb0-e37d-4ef1-afc7-03db2bca8892}</Project>
<Name>VIZ.Framework.Module</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Storage\VIZ.Framework.Storage.csproj">
<Project>{06b80c09-343d-4bb2-aeb1-61cfbfbf5cad}</Project>
<Name>VIZ.Framework.Storage</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Common\VIZ.Package.Common.csproj">
<Project>{e4912bce-bc90-4457-9ee3-06435496d979}</Project>
<Name>VIZ.Package.Common</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Connection\VIZ.Package.Connection.csproj">
<Project>{421527f6-37b8-4615-9317-ffd5e272181b}</Project>
<Name>VIZ.Package.Connection</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Domain\VIZ.Package.Domain.csproj">
<Project>{dbaeae47-1f2d-4b05-82c3-abf7cc33aa2d}</Project>
<Name>VIZ.Package.Domain</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Module.Resource\VIZ.Package.Module.Resource.csproj">
<Project>{327ea1f4-f23c-418a-a2ef-da4f1039b333}</Project>
<Name>VIZ.Package.Module.Resource</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Plugin\VIZ.Package.Plugin.csproj">
<Project>{9c7d3994-340a-480f-8d06-92c562137810}</Project>
<Name>VIZ.Package.Plugin</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Service\VIZ.Package.Service.csproj">
<Project>{bf693c2d-3de8-463b-8394-a0667dca7b42}</Project>
<Name>VIZ.Package.Service</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Storage\VIZ.Package.Storage.csproj">
<Project>{5bf08a07-9405-4f5d-a7f7-9d9ee17d6dd0}</Project>
<Name>VIZ.Package.Storage</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
VIZ.Package.Service/DB/ControlObject/ControlObjectService.cs
View file @
b5d858a0
...
...
@@ -21,24 +21,15 @@ namespace VIZ.Package.Service
/// <param name="fields">控制字段</param>
public
void
SaveControlFields
(
PageModelBase
pageBase
,
IList
<
ControlFieldNodeModel
>
fields
)
{
Guid
id
=
Guid
.
Empty
;
if
(
pageBase
is
PageTemplateModel
template
)
{
id
=
template
.
TemplateID
;
}
else
if
(
pageBase
is
PageModel
page
)
{
id
=
page
.
PageID
;
}
ILiteCollection
<
ControlFieldEntity
>
collection
=
ApplicationDomainEx
.
ProjectDbContext
.
GetControlFiled
(
id
);
Guid
id
=
this
.
GetTemplateIdOrPageId
(
pageBase
);
collection
.
DeleteAll
(
);
ApplicationDomainEx
.
ProjectDbContext
.
ControlField
.
DeleteMany
(
p
=>
p
.
PageID
==
id
);
List
<
ControlFieldEntity
>
list
=
new
List
<
ControlFieldEntity
>();
foreach
(
ControlFieldNodeModel
field
in
fields
)
{
ControlFieldEntity
entity
=
new
ControlFieldEntity
();
entity
.
PageID
=
id
;
entity
.
FieldIdentifier
=
field
.
FieldIdentifier
;
entity
.
Value
=
field
.
Value
;
entity
.
Type
=
field
.
Type
;
...
...
@@ -46,43 +37,24 @@ namespace VIZ.Package.Service
list
.
Add
(
entity
);
}
collection
.
Insert
(
list
);
}
/// <summary>
/// 保存控制字段
/// </summary>
/// <param name="pageBase">页或模板</param>
/// <param name="fields">控制字段</param>
public
void
SaveControlFields
(
PageModelBase
pageBase
,
IList
<
ControlFieldEntity
>
fields
)
{
Guid
id
=
Guid
.
Empty
;
if
(
pageBase
is
PageTemplateModel
template
)
{
id
=
template
.
TemplateID
;
}
else
if
(
pageBase
is
PageModel
page
)
{
id
=
page
.
PageID
;
}
ILiteCollection
<
ControlFieldEntity
>
collection
=
ApplicationDomainEx
.
ProjectDbContext
.
GetControlFiled
(
id
);
collection
.
DeleteAll
();
collection
.
Insert
(
fields
);
ApplicationDomainEx
.
ProjectDbContext
.
ControlField
.
Insert
(
list
);
}
/// <summary>
/// 拷贝控制字段
/// </summary>
/// <param name="srcID">源ID</param>
/// <param name="d
i
stID">目标ID</param>
public
void
CopyControlFields
(
Guid
srcID
,
Guid
d
i
stID
)
/// <param name="dstID">目标ID</param>
public
void
CopyControlFields
(
Guid
srcID
,
Guid
dstID
)
{
ILiteCollection
<
ControlFieldEntity
>
srcCollection
=
ApplicationDomainEx
.
ProjectDbContext
.
GetControlFiled
(
srcID
);
ILiteCollection
<
ControlFieldEntity
>
dstCollection
=
ApplicationDomainEx
.
ProjectDbContext
.
GetControlFiled
(
distID
);
dstCollection
.
DeleteAll
();
dstCollection
.
Insert
(
srcCollection
.
FindAll
());
var
src
=
ApplicationDomainEx
.
ProjectDbContext
.
ControlField
.
Find
(
p
=>
p
.
PageID
==
srcID
).
ToList
();
ApplicationDomainEx
.
ProjectDbContext
.
ControlField
.
DeleteMany
(
p
=>
p
.
PageID
==
dstID
);
src
.
ForEach
(
p
=>
{
p
.
Id
=
0
;
p
.
PageID
=
dstID
;
});
ApplicationDomainEx
.
ProjectDbContext
.
ControlField
.
Insert
(
src
);
}
/// <summary>
...
...
@@ -92,19 +64,11 @@ namespace VIZ.Package.Service
/// <returns>控制字段</returns>
public
List
<
ControlFieldEntity
>
GetControlFields
(
PageModelBase
pageBase
)
{
Guid
id
=
Guid
.
Empty
;
if
(
pageBase
is
PageTemplateModel
template
)
{
id
=
template
.
TemplateID
;
}
else
if
(
pageBase
is
PageModel
page
)
{
id
=
page
.
PageID
;
}
Guid
id
=
this
.
GetTemplateIdOrPageId
(
pageBase
);
ILiteCollection
<
ControlFieldEntity
>
collection
=
ApplicationDomainEx
.
ProjectDbContext
.
GetControlFiled
(
id
);
var
result
=
ApplicationDomainEx
.
ProjectDbContext
.
ControlField
.
Find
(
p
=>
p
.
PageID
==
id
);
return
collection
.
FindAll
()
.
ToList
();
return
result
.
ToList
();
}
/// <summary>
...
...
@@ -127,5 +91,81 @@ namespace VIZ.Package.Service
model
.
Value
=
entity
.
Value
;
}
}
/// <summary>
/// 保存控制对象
/// </summary>
/// <param name="pageBase">页或模板</param>
/// <param name="obj">控制对象</param>
/// <remarks>
/// 目前每个页只保留主控制对象
/// </remarks>
public
void
SaveControlObject
(
PageModelBase
pageBase
,
ControlObjectModel
obj
)
{
Guid
id
=
this
.
GetTemplateIdOrPageId
(
pageBase
);
ControlObjectEntity
entity
=
ApplicationDomainEx
.
ProjectDbContext
.
ControlObject
.
FindOne
(
p
=>
p
.
PageID
==
id
);
entity
=
entity
??
new
ControlObjectEntity
();
entity
.
PageID
=
id
;
entity
.
TreeNodeName
=
obj
.
TreeNodeName
;
entity
.
TreeNodePath
=
obj
.
TreeNodePath
;
entity
.
Description
=
obj
.
Description
;
entity
.
UseAllDirectors
=
obj
.
UseAllDirectors
;
entity
.
FieldDetails
=
obj
.
FieldDetails
;
ApplicationDomainEx
.
ProjectDbContext
.
ControlObject
.
Upsert
(
entity
);
}
/// <summary>
/// 拷贝控制对象
/// </summary>
/// <param name="srcID">源ID</param>
/// <param name="dstID">目标ID</param>
public
void
CopyControlObjects
(
Guid
srcID
,
Guid
dstID
)
{
var
src
=
ApplicationDomainEx
.
ProjectDbContext
.
ControlObject
.
Find
(
p
=>
p
.
PageID
==
srcID
).
ToList
();
src
.
ForEach
(
p
=>
{
p
.
Id
=
0
;
p
.
PageID
=
dstID
;
});
ApplicationDomainEx
.
ProjectDbContext
.
ControlObject
.
DeleteMany
(
p
=>
p
.
PageID
==
dstID
);
ApplicationDomainEx
.
ProjectDbContext
.
ControlObject
.
Insert
(
src
);
}
/// <summary>
/// 获取控制对象
/// </summary>
/// <param name="pageBase">页基类</param>
/// <returns>控制对象</returns>
public
List
<
ControlObjectEntity
>
GetControlObject
(
PageModelBase
pageBase
)
{
Guid
id
=
this
.
GetTemplateIdOrPageId
(
pageBase
);
var
result
=
ApplicationDomainEx
.
ProjectDbContext
.
ControlObject
.
Find
(
p
=>
p
.
PageID
==
id
).
ToList
();
return
result
;
}
/// <summary>
/// 获取模板ID或页ID
/// </summary>
/// <param name="pageBase">页基类</param>
/// <returns>模板ID或页ID</returns>
private
Guid
GetTemplateIdOrPageId
(
PageModelBase
pageBase
)
{
Guid
id
=
Guid
.
Empty
;
if
(
pageBase
is
PageTemplateModel
template
)
{
id
=
template
.
TemplateID
;
}
else
if
(
pageBase
is
PageModel
page
)
{
id
=
page
.
PageID
;
}
return
id
;
}
}
}
VIZ.Package.Service/VIZ.Package.Service.csproj
View file @
b5d858a0
...
...
@@ -60,12 +60,14 @@
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web" />
<Reference Include="System.Windows" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<Compile Include="DB\Conn\ConnService.cs" />
...
...
@@ -75,6 +77,7 @@
<Compile Include="DB\Registry\RegistryService.cs" />
<Compile Include="Logic\Plugin\PluginService.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Viz\VizControlObjectDownloadService.cs" />
<Compile Include="Viz\GHResourceService.cs" />
<Compile Include="Viz\GHService.cs" />
<Compile Include="Viz\VizCommandControlObjectService.cs" />
...
...
VIZ.Package.Service/Viz/VizCommandControlObjectService.cs
View file @
b5d858a0
...
...
@@ -2,6 +2,7 @@
using
System.Collections.Generic
;
using
System.Dynamic
;
using
System.Linq
;
using
System.Reflection
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Web.UI.WebControls
;
...
...
@@ -34,6 +35,10 @@ namespace VIZ.Package.Service
VizControlFieldType
.
font
};
// =======================================================================
// public Function
// =======================================================================
/// <summary>
/// 获取控制对象List列定义
/// </summary>
...
...
@@ -211,65 +216,32 @@ namespace VIZ.Package.Service
// Step 5. 获取第一个控制对象的字段描述
string
fieldDetails
=
this
.
GetControlObjectResult
(
conn
,
obj
.
TreeNodePath
);
obj
.
FieldDetails
=
fieldDetails
??
string
.
Empty
;
foreach
(
string
fieldDetail
in
fieldDetails
.
Split
(
'\n'
))
{
// 返回示例: BTNAME:#10245*GEOM*TEXT:text:::-1:BTNAME:single_line, location_id=#10245, location=2/3/5
if
(
string
.
IsNullOrWhiteSpace
(
fieldDetail
))
continue
;
string
[]
pars
=
fieldDetail
.
Split
(
':'
);
string
num
=
pars
[
1
].
Split
(
'*'
).
FirstOrDefault
();
ControlFieldNodeModel
node
=
new
ControlFieldNodeModel
();
node
.
FieldIdentifier
=
pars
[
0
];
node
.
Route
=
node
.
FieldIdentifier
.
Split
(
'.'
).
ToList
();
node
.
Num
=
num
;
node
.
TypeSchema
=
pars
[
2
];
node
.
Type
=
this
.
GetControlFieldType
(
node
.
TypeSchema
);
node
.
Value
=
this
.
GetControlFieldValue
(
conn
,
obj
.
TreeNodePath
,
node
.
FieldIdentifier
);
if
(
pars
.
Length
>=
7
)
{
node
.
Description
=
pars
[
6
];
}
obj
.
AllFiledNodes
.
Add
(
node
);
}
// Step 6. 根据字段FieldIdentifier构建树形结构
int
count
=
1
;
List
<
ControlFieldNodeModel
>
fieldNodes
=
obj
.
AllFiledNodes
.
Where
(
p
=>
p
.
Route
.
Count
==
count
).
ToList
();
List
<
ControlFieldNodeModel
>
parents
=
fieldNodes
;
while
(
true
)
{
++
count
;
List
<
ControlFieldNodeModel
>
items
=
obj
.
AllFiledNodes
.
Where
(
p
=>
p
.
Route
.
Count
==
count
).
ToList
();
if
(
items
.
Count
==
0
)
break
;
foreach
(
ControlFieldNodeModel
item
in
items
)
{
string
parentFieldIdentifier
=
string
.
Join
(
"."
,
item
.
Route
.
Take
(
count
-
1
));
ControlFieldNodeModel
parent
=
parents
.
FirstOrDefault
(
p
=>
p
.
FieldIdentifier
==
parentFieldIdentifier
);
if
(
parent
==
null
)
continue
;
parent
.
Items
.
Add
(
item
);
}
parents
=
items
;
}
obj
.
FieldNodes
=
fieldNodes
;
// Step 6. 更新控制对象字段
this
.
UpdateControlObjectField
(
conn
,
obj
,
obj
.
FieldDetails
,
true
);
return
obj
;
}
/// <summary>
/// 更新控制对象模型
/// </summary>
/// <param name="model">模型</param>
/// <param name="entity">实体</param>
public
void
UpdateControlObjectModel
(
ControlObjectModel
model
,
ControlObjectEntity
entity
)
{
// Step 1. 获取第一个控制对象的信息
model
.
TreeNodePath
=
entity
.
TreeNodePath
;
model
.
TreeNodeName
=
entity
.
TreeNodeName
;
model
.
Description
=
entity
.
Description
;
model
.
UseAllDirectors
=
entity
.
UseAllDirectors
;
model
.
FieldDetails
=
entity
.
FieldDetails
??
string
.
Empty
;
this
.
UpdateControlObjectField
(
null
,
model
,
model
.
FieldDetails
,
false
);
}
/// <summary>
/// 获取控制对象参数
/// </summary>
/// <param name="conn">连接</param>
...
...
@@ -408,12 +380,16 @@ namespace VIZ.Package.Service
}
}
// =======================================================================
// Private Function
// =======================================================================
/// <summary>
/// 获取控制字段类型
/// </summary>
/// <param name="type">字段类型</param>
/// <returns>控制对象字段类型</returns>
p
ublic
VizControlFieldType
GetControlFieldType
(
string
type
)
p
rivate
VizControlFieldType
GetControlFieldType
(
string
type
)
{
if
(
type
==
"text"
)
return
VizControlFieldType
.
text
;
...
...
@@ -447,5 +423,73 @@ namespace VIZ.Package.Service
return
VizControlFieldType
.
none
;
}
/// <summary>
/// 更新控制对象字段
/// </summary>
/// <param name="conn">连接</param>
/// <param name="model">控制字段模型</param>
/// <param name="fieldDetails">字段描述</param>
/// <param name="isGetValueFromViz">是否从Viz获取字段值</param>
private
void
UpdateControlObjectField
(
ConnModel
conn
,
ControlObjectModel
model
,
string
fieldDetails
,
bool
isGetValueFromViz
)
{
foreach
(
string
fieldDetail
in
fieldDetails
.
Split
(
'\n'
))
{
// 返回示例: BTNAME:#10245*GEOM*TEXT:text:::-1:BTNAME:single_line, location_id=#10245, location=2/3/5
if
(
string
.
IsNullOrWhiteSpace
(
fieldDetail
))
continue
;
string
[]
pars
=
fieldDetail
.
Split
(
':'
);
string
num
=
pars
[
1
].
Split
(
'*'
).
FirstOrDefault
();
ControlFieldNodeModel
node
=
new
ControlFieldNodeModel
();
node
.
FieldIdentifier
=
pars
[
0
];
node
.
Route
=
node
.
FieldIdentifier
.
Split
(
'.'
).
ToList
();
node
.
Num
=
num
;
node
.
TypeSchema
=
pars
[
2
];
node
.
Type
=
this
.
GetControlFieldType
(
node
.
TypeSchema
);
if
(
isGetValueFromViz
)
{
node
.
Value
=
this
.
GetControlFieldValue
(
conn
,
model
.
TreeNodePath
,
node
.
FieldIdentifier
);
}
if
(
pars
.
Length
>=
7
)
{
node
.
Description
=
pars
[
6
];
}
model
.
AllFiledNodes
.
Add
(
node
);
}
// Step 6. 根据字段FieldIdentifier构建树形结构
int
count
=
1
;
List
<
ControlFieldNodeModel
>
fieldNodes
=
model
.
AllFiledNodes
.
Where
(
p
=>
p
.
Route
.
Count
==
count
).
ToList
();
List
<
ControlFieldNodeModel
>
parents
=
fieldNodes
;
while
(
true
)
{
++
count
;
List
<
ControlFieldNodeModel
>
items
=
model
.
AllFiledNodes
.
Where
(
p
=>
p
.
Route
.
Count
==
count
).
ToList
();
if
(
items
.
Count
==
0
)
break
;
foreach
(
ControlFieldNodeModel
item
in
items
)
{
string
parentFieldIdentifier
=
string
.
Join
(
"."
,
item
.
Route
.
Take
(
count
-
1
));
ControlFieldNodeModel
parent
=
parents
.
FirstOrDefault
(
p
=>
p
.
FieldIdentifier
==
parentFieldIdentifier
);
if
(
parent
==
null
)
continue
;
parent
.
Items
.
Add
(
item
);
}
parents
=
items
;
}
model
.
FieldNodes
=
fieldNodes
;
}
}
}
VIZ.Package.Service/Viz/VizCommandService.cs
View file @
b5d858a0
...
...
@@ -244,7 +244,7 @@ namespace VIZ.Package.Service
/// 开始动画
/// </summary>
/// <param name="conn">连接</param>
/// <param name="layer">层</param>
s
/// <param name="layer">层</param>
public
void
Start
(
ConnModel
conn
,
VizLayer
layer
)
{
conn
.
EndpointManager
.
Send
(
$"RENDERER*
{
layer
}
*STAGE START"
);
...
...
@@ -303,5 +303,33 @@ namespace VIZ.Package.Service
string
sceneName
=
conn
.
EndpointManager
.
Request
(
$"
{
scene
}
*NAME GET"
);
return
sceneName
;
}
/// <summary>
/// 清理页
/// </summary>
/// <param name="conn">连接</param>
public
void
TakeClear
(
ConnModel
conn
)
{
conn
.
EndpointManager
.
Request
(
"RENDERER*FRONT_LAYER SET_OBJECT"
);
conn
.
EndpointManager
.
Request
(
"RENDERER*MAIN_LAYER SET_OBJECT"
);
conn
.
EndpointManager
.
Request
(
"RENDERER*BACK_LAYER SET_OBJECT"
);
conn
.
EndpointManager
.
Request
(
"SCENE CLEANUP"
);
conn
.
EndpointManager
.
Request
(
"GEOM CLEANUP"
);
conn
.
EndpointManager
.
Request
(
"IMAGE CLEANUP"
);
conn
.
EndpointManager
.
Request
(
"FONT CLEANUP"
);
conn
.
EndpointManager
.
Request
(
"MATERIAL CLEANUP"
);
conn
.
EndpointManager
.
Request
(
"MAPS CACHE CLEANUP"
);
}
/// <summary>
/// 初始化页
/// </summary>
/// <param name="conn">连接</param>
/// <param name="scene">场景</param>
/// <returns>初始化返回</returns>
public
string
TakeInit
(
ConnModel
conn
,
string
scene
)
{
return
conn
.
EndpointManager
.
Request
(
$"SCENE*
{
scene
}
LOAD"
);
}
}
}
VIZ.Package.Service/Viz/VizControlObjectDownloadService.cs
0 → 100644
View file @
b5d858a0
using
log4net
;
using
System
;
using
System.Collections.Generic
;
using
System.Diagnostics
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
VIZ.Framework.Core
;
using
VIZ.Package.Domain
;
using
VIZ.Package.Storage
;
namespace
VIZ.Package.Service
{
/// <summary>
/// Viz控制对象下载服务
/// </summary>
public
class
VizControlObjectDownloadService
{
/// <summary>
/// 日志
/// </summary>
private
readonly
static
ILog
log
=
LogManager
.
GetLogger
(
typeof
(
VizControlObjectDownloadService
));
/// <summary>
/// Viz命令控制对象服务
/// </summary>
private
VizCommandControlObjectService
vizCommandControlObjectService
=
new
VizCommandControlObjectService
();
/// <summary>
/// Viz命令服务
/// </summary>
private
VizCommandService
vizCommandService
=
new
VizCommandService
();
/// <summary>
/// 控制对象服务
/// </summary>
private
ControlObjectService
controlObjectService
=
new
ControlObjectService
();
/// <summary>
/// 加载
/// </summary>
/// <param name="pageBases"></param>
public
void
Load
(
List
<
PageModelBase
>
pageBases
)
{
// 停止更新
this
.
vizCommandService
.
SetEnabledUpdate
(
ApplicationDomainEx
.
PreviewConn
,
false
);
// 更新场景
foreach
(
PageModelBase
page
in
pageBases
)
{
try
{
Debug
.
WriteLine
(
$"加载场景 开始 [
{
page
.
Scene
}
]"
);
this
.
ExecuteLoadOnePage
(
page
);
Debug
.
WriteLine
(
$"加载场景 结束 [
{
page
.
Scene
}
]"
);
}
catch
(
Exception
ex
)
{
log
.
Error
(
ex
);
}
}
// 启用更新
this
.
vizCommandService
.
SetEnabledUpdate
(
ApplicationDomainEx
.
PreviewConn
,
true
);
}
/// <summary>
/// 执行加载
/// </summary>
/// <param name="pageBase">模板或页</param>
private
void
ExecuteLoadOnePage
(
PageModelBase
pageBase
)
{
if
(
pageBase
==
null
)
return
;
// 切换场景
this
.
vizCommandService
.
SetObject
(
ApplicationDomainEx
.
PreviewConn
,
pageBase
.
ScenePath
,
pageBase
.
Layer
);
// 获取控制对象
ControlObjectModel
controlObject
=
this
.
vizCommandControlObjectService
.
GetControlObject
(
ApplicationDomainEx
.
PreviewConn
);
// 保存控制对象到本地
this
.
controlObjectService
.
SaveControlObject
(
pageBase
,
controlObject
);
// 保存控制对象字段到本地
this
.
controlObjectService
.
SaveControlFields
(
pageBase
,
controlObject
.
AllFiledNodes
);
}
}
}
VIZ.Package.Storage/Entity/ControlObject/ControlFieldEntity.cs
View file @
b5d858a0
...
...
@@ -19,6 +19,11 @@ namespace VIZ.Package.Storage
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 所属模板ID或页ID
/// </summary>
public
Guid
PageID
{
get
;
set
;
}
/// <summary>
/// 字段名称
/// </summary>
public
string
FieldIdentifier
{
get
;
set
;
}
...
...
VIZ.Package.Storage/Entity/ControlObject/ControlObjectEntity.cs
0 → 100644
View file @
b5d858a0
using
LiteDB
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
VIZ.Package.Storage
{
/// <summary>
/// 控制对象实体
/// </summary>
public
class
ControlObjectEntity
{
/// <summary>
/// 编号
/// </summary>
[
BsonId
(
true
)]
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 所属模板ID或页ID
/// </summary>
public
Guid
PageID
{
get
;
set
;
}
/// <summary>
/// 所在场景节点名称
/// </summary>
public
string
TreeNodeName
{
get
;
set
;
}
/// <summary>
/// 所在场景节点路径
/// </summary>
public
string
TreeNodePath
{
get
;
set
;
}
/// <summary>
/// 描述
/// </summary>
public
string
Description
{
get
;
set
;
}
/// <summary>
/// 使用所有的控制器
/// </summary>
public
bool
UseAllDirectors
{
get
;
set
;
}
/// <summary>
/// 字段描述
/// </summary>
public
string
FieldDetails
{
get
;
set
;
}
}
}
VIZ.Package.Storage/ProjectDbContext.cs
View file @
b5d858a0
...
...
@@ -37,6 +37,8 @@ namespace VIZ.Package.Storage
this
.
PageTemplate
=
this
.
Database
.
GetCollection
<
PageTemplateEntity
>();
this
.
PageGroup
=
this
.
Database
.
GetCollection
<
PageGroupEntity
>();
this
.
Page
=
this
.
Database
.
GetCollection
<
PageEntity
>();
this
.
ControlField
=
this
.
Database
.
GetCollection
<
ControlFieldEntity
>();
this
.
ControlObject
=
this
.
Database
.
GetCollection
<
ControlObjectEntity
>();
}
/// <summary>
...
...
@@ -60,16 +62,14 @@ namespace VIZ.Package.Storage
public
ILiteCollection
<
PageEntity
>
Page
{
get
;
private
set
;
}
/// <summary>
///
根据ID获取控制字段, ID 为 TemplateID 或者 PageID
///
控制字段
/// </summary>
/// <param name="id">TemplateID 或者 PageID</param>
/// <returns>控制字段</returns>
public
ILiteCollection
<
ControlFieldEntity
>
GetControlFiled
(
Guid
id
)
{
string
name
=
$"PAGE_
{
id
.
ToString
().
Replace
(
"-"
,
string
.
Empty
)}
"
;
public
ILiteCollection
<
ControlFieldEntity
>
ControlField
{
get
;
private
set
;
}
return
this
.
Database
.
GetCollection
<
ControlFieldEntity
>(
name
);
}
/// <summary>
/// 控制对象
/// </summary>
public
ILiteCollection
<
ControlObjectEntity
>
ControlObject
{
get
;
private
set
;
}
/// <summary>
/// 销毁
...
...
VIZ.Package.Storage/VIZ.Package.Storage.csproj
View file @
b5d858a0
...
...
@@ -72,6 +72,7 @@
<Compile Include="Entity\Conn\ConnEntity.cs" />
<Compile Include="Entity\Conn\ConnGroupEntity.cs" />
<Compile Include="Entity\ControlObject\ControlFieldEntity.cs" />
<Compile Include="Entity\ControlObject\ControlObjectEntity.cs" />
<Compile Include="Entity\Page\PageEntityBase.cs" />
<Compile Include="Entity\Page\PageEntity.cs" />
<Compile Include="Entity\Page\PageGroupEntity.cs" />
...
...
VIZ.Package.WpfTest/VIZ.Package.WpfTest.csproj
View file @
b5d858a0
...
...
@@ -55,10 +55,10 @@
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="DevExpress.Data.Desktop.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Data.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Printing.v22.
1.Core, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Core.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Data.Desktop.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Data.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Printing.v22.
2.Core, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Core.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="log4net, Version=2.0.14.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>..\packages\log4net.2.0.14\lib\net45\log4net.dll</HintPath>
</Reference>
...
...
VIZ.Package.WpfTest/VIZ.Package.WpfTest.csproj.bak
0 → 100644
View file @
b5d858a0
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{680C8D29-A993-492E-9E1A-DA80513ADBFE}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>VIZ.Package.WpfTest</RootNamespace>
<AssemblyName>VIZ.Package.WpfTest</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="DevExpress.Data.Desktop.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Data.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Printing.v22.1.Core, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Core.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="log4net, Version=2.0.14.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>..\packages\log4net.2.0.14\lib\net45\log4net.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Data" />
<Reference Include="System.Web" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="MainWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Compile Include="MainWindow.xaml.cs">
<DependentUpon>MainWindow.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
</ItemGroup>
<ItemGroup>
<Compile Include="MainWindowModel.cs" />
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Common.Resource\VIZ.Framework.Common.Resource.csproj">
<Project>{76ef480a-e486-41b7-b7a5-2a849fc8d5bf}</Project>
<Name>VIZ.Framework.Common.Resource</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Common\VIZ.Framework.Common.csproj">
<Project>{92834c05-703e-4f05-9224-f36220939d8f}</Project>
<Name>VIZ.Framework.Common</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Connection\VIZ.Framework.Connection.csproj">
<Project>{e07528dd-9dee-47c2-b79d-235ecfa6b003}</Project>
<Name>VIZ.Framework.Connection</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Core\VIZ.Framework.Core.csproj">
<Project>{75b39591-4bc3-4b09-bd7d-ec9f67efa96e}</Project>
<Name>VIZ.Framework.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Domain\VIZ.Framework.Domain.csproj">
<Project>{28661e82-c86a-4611-a028-c34f6ac85c97}</Project>
<Name>VIZ.Framework.Domain</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Module\VIZ.Framework.Module.csproj">
<Project>{47cf6fb0-e37d-4ef1-afc7-03db2bca8892}</Project>
<Name>VIZ.Framework.Module</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Storage\VIZ.Framework.Storage.csproj">
<Project>{06b80c09-343d-4bb2-aeb1-61cfbfbf5cad}</Project>
<Name>VIZ.Framework.Storage</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Common\VIZ.Package.Common.csproj">
<Project>{e4912bce-bc90-4457-9ee3-06435496d979}</Project>
<Name>VIZ.Package.Common</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Connection\VIZ.Package.Connection.csproj">
<Project>{421527f6-37b8-4615-9317-ffd5e272181b}</Project>
<Name>VIZ.Package.Connection</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Domain\VIZ.Package.Domain.csproj">
<Project>{dbaeae47-1f2d-4b05-82c3-abf7cc33aa2d}</Project>
<Name>VIZ.Package.Domain</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Module.Resource\VIZ.Package.Module.Resource.csproj">
<Project>{327ea1f4-f23c-418a-a2ef-da4f1039b333}</Project>
<Name>VIZ.Package.Module.Resource</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Plugin\VIZ.Package.Plugin.csproj">
<Project>{9c7d3994-340a-480f-8d06-92c562137810}</Project>
<Name>VIZ.Package.Plugin</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Service\VIZ.Package.Service.csproj">
<Project>{bf693c2d-3de8-463b-8394-a0667dca7b42}</Project>
<Name>VIZ.Package.Service</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Storage\VIZ.Package.Storage.csproj">
<Project>{5bf08a07-9405-4f5d-a7f7-9d9ee17d6dd0}</Project>
<Name>VIZ.Package.Storage</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
VIZ.Package/App.xaml.cs
View file @
b5d858a0
using
DevExpress.Xpf.Core
;
using
DevExpress.Xpf.Core.DragAndDrop
;
using
System
;
using
System.Collections.Generic
;
using
System.Configuration
;
...
...
@@ -24,10 +25,11 @@ namespace VIZ.Package
public
App
()
{
// 设置DevExpress主题
VizThemeThemePalette
palette
=
new
VizThemeThemePalette
();
Theme
theme
=
Theme
.
CreateTheme
(
palette
,
Theme
.
VS2019Dark
);
Theme
.
RegisterTheme
(
theme
);
ApplicationThemeHelper
.
ApplicationThemeName
=
theme
.
Name
;
//VizThemeThemePalette palette = new VizThemeThemePalette();
//Theme theme = Theme.CreateTheme(palette, Theme.Win11Dark);
//Theme.RegisterTheme(theme);
//ApplicationThemeHelper.ApplicationThemeName = theme.Name;
ApplicationThemeHelper
.
ApplicationThemeName
=
Theme
.
Win10DarkName
;
// 初始化LiteDB
AppSetup
.
AppendSetup
(
new
AppSetup_InitLiteDB
());
...
...
VIZ.Package/VIZ.Package.csproj
View file @
b5d858a0
...
...
@@ -58,11 +58,11 @@
<ApplicationIcon>logo.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="DevExpress.Data.Desktop.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Data.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Printing.v22.
1.Core, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Core.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Themes.VS2019Dark.v22.
1, Version=22.1.6
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Data.Desktop.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Data.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Printing.v22.
2.Core, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Core.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Themes.VS2019Dark.v22.
2, Version=22.2.4
.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="LiteDB, Version=5.0.15.0, Culture=neutral, PublicKeyToken=4ee40123013c9f27, processorArchitecture=MSIL">
<HintPath>..\packages\LiteDB.5.0.15\lib\net45\LiteDB.dll</HintPath>
</Reference>
...
...
VIZ.Package/VIZ.Package.csproj.bak
0 → 100644
View file @
b5d858a0
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{5E259876-8FA4-4AD1-9D91-07A76ABC2A16}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>VIZ.Package</RootNamespace>
<AssemblyName>VIZ.Package</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>logo.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="DevExpress.Data.Desktop.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Data.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Printing.v22.1.Core, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Core.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Xpf.Themes.VS2019Dark.v22.1, Version=22.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="LiteDB, Version=5.0.15.0, Culture=neutral, PublicKeyToken=4ee40123013c9f27, processorArchitecture=MSIL">
<HintPath>..\packages\LiteDB.5.0.15\lib\net45\LiteDB.dll</HintPath>
</Reference>
<Reference Include="log4net, Version=2.0.14.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>..\packages\log4net.2.0.14\lib\net45\log4net.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil, Version=0.11.4.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
<HintPath>..\packages\Mono.Cecil.0.11.4\lib\net40\Mono.Cecil.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Mdb, Version=0.11.4.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
<HintPath>..\packages\Mono.Cecil.0.11.4\lib\net40\Mono.Cecil.Mdb.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Pdb, Version=0.11.4.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
<HintPath>..\packages\Mono.Cecil.0.11.4\lib\net40\Mono.Cecil.Pdb.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Rocks, Version=0.11.4.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
<HintPath>..\packages\Mono.Cecil.0.11.4\lib\net40\Mono.Cecil.Rocks.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Data" />
<Reference Include="System.Web" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="LoginWindow.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Compile Include="LoginWindow.xaml.cs">
<DependentUpon>LoginWindow.xaml</DependentUpon>
</Compile>
<Page Include="MainWindow.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<ItemGroup>
<Compile Include="MainWindow.xaml.cs">
<DependentUpon>MainWindow.xaml</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="config\config.ini">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="config\log.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Common.Resource\VIZ.Framework.Common.Resource.csproj">
<Project>{76ef480a-e486-41b7-b7a5-2a849fc8d5bf}</Project>
<Name>VIZ.Framework.Common.Resource</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Common\VIZ.Framework.Common.csproj">
<Project>{92834c05-703e-4f05-9224-f36220939d8f}</Project>
<Name>VIZ.Framework.Common</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Connection\VIZ.Framework.Connection.csproj">
<Project>{e07528dd-9dee-47c2-b79d-235ecfa6b003}</Project>
<Name>VIZ.Framework.Connection</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Core\VIZ.Framework.Core.csproj">
<Project>{75b39591-4bc3-4b09-bd7d-ec9f67efa96e}</Project>
<Name>VIZ.Framework.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Domain\VIZ.Framework.Domain.csproj">
<Project>{28661e82-c86a-4611-a028-c34f6ac85c97}</Project>
<Name>VIZ.Framework.Domain</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Module\VIZ.Framework.Module.csproj">
<Project>{47cf6fb0-e37d-4ef1-afc7-03db2bca8892}</Project>
<Name>VIZ.Framework.Module</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Storage\VIZ.Framework.Storage.csproj">
<Project>{06b80c09-343d-4bb2-aeb1-61cfbfbf5cad}</Project>
<Name>VIZ.Framework.Storage</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Common\VIZ.Package.Common.csproj">
<Project>{e4912bce-bc90-4457-9ee3-06435496d979}</Project>
<Name>VIZ.Package.Common</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Connection\VIZ.Package.Connection.csproj">
<Project>{421527f6-37b8-4615-9317-ffd5e272181b}</Project>
<Name>VIZ.Package.Connection</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Domain\VIZ.Package.Domain.csproj">
<Project>{dbaeae47-1f2d-4b05-82c3-abf7cc33aa2d}</Project>
<Name>VIZ.Package.Domain</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Module.Resource\VIZ.Package.Module.Resource.csproj">
<Project>{327ea1f4-f23c-418a-a2ef-da4f1039b333}</Project>
<Name>VIZ.Package.Module.Resource</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Module\VIZ.Package.Module.csproj">
<Project>{6fd4c0f0-8a00-4db8-924b-a3cd9a45297f}</Project>
<Name>VIZ.Package.Module</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Plugin\VIZ.Package.Plugin.csproj">
<Project>{9c7d3994-340a-480f-8d06-92c562137810}</Project>
<Name>VIZ.Package.Plugin</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Service\VIZ.Package.Service.csproj">
<Project>{bf693c2d-3de8-463b-8394-a0667dca7b42}</Project>
<Name>VIZ.Package.Service</Name>
</ProjectReference>
<ProjectReference Include="..\VIZ.Package.Storage\VIZ.Package.Storage.csproj">
<Project>{5bf08a07-9405-4f5d-a7f7-9d9ee17d6dd0}</Project>
<Name>VIZ.Package.Storage</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="layout\default_layout.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<Resource Include="logo.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>echo ==========================================================
echo #################### COPY LIB ####################
xcopy "$(SolutionDir)Lib" ".\" /S /Y /C /E /F
echo ----------------------------------------------------------
if "$(ConfigurationName)" == "Release" (
echo #################### RELEASE MODE ####################
echo #################### DELETE *.dll.config ####################
for %25%25i in (.\*.dll.config) do (echo %25%25i && del %25%25i)
echo #################### DELETE *.pdb ####################
for %25%25i in (.\*.pdb) do ( echo %25%25i && del %25%25i )
echo #################### DELETE *.xml ####################
for %25%25i in (.\*.xml) do ( echo %25%25i && del %25%25i )
)
echo ==========================================================</PostBuildEvent>
</PropertyGroup>
</Project>
\ No newline at end of file
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