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
8e81f46b
Commit
8e81f46b
authored
Feb 27, 2023
by
liulongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
take标识
parent
2a7de5ee
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
3 deletions
+46
-3
VIZ.Package.Domain/ApplicationDomainEx.cs
+6
-1
VIZ.Package.Domain/Model/Page/PageModelBase.cs
+14
-0
VIZ.Package.Domain/VIZ.Package.Domain.csproj
+4
-1
VIZ.Package.Module/Control/ViewModel/ControlViewModel.cs
+16
-0
VIZ.Package.Module/Page/Group/View/PageGroupView.xaml
+5
-0
VIZ.Package.Module/Preview/VizPreview/ViewModel/VizPreviewViewModel.cs
+1
-1
No files found.
VIZ.Package.Domain/ApplicationDomainEx.cs
View file @
8e81f46b
...
@@ -134,11 +134,16 @@ namespace VIZ.Package.Domain
...
@@ -134,11 +134,16 @@ namespace VIZ.Package.Domain
public
static
string
VizPreviewRenderer
{
get
;
set
;
}
public
static
string
VizPreviewRenderer
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 当前页
/// 当前页
或模板
/// </summary>
/// </summary>
public
static
PageModelBase
CurrentPage
{
get
;
set
;
}
public
static
PageModelBase
CurrentPage
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 当前上板的页或模板
/// </summary>
public
static
PageModelBase
CurrentTake
{
get
;
set
;
}
/// <summary>
/// 场景是否正在加载
/// 场景是否正在加载
/// </summary>
/// </summary>
public
static
bool
IsSceneLoading
{
get
;
set
;
}
public
static
bool
IsSceneLoading
{
get
;
set
;
}
...
...
VIZ.Package.Domain/Model/Page/PageModelBase.cs
View file @
8e81f46b
...
@@ -157,5 +157,19 @@ namespace VIZ.Package.Domain
...
@@ -157,5 +157,19 @@ namespace VIZ.Package.Domain
}
}
#
endregion
#
endregion
#
region
IsTake
--
是否上板
private
bool
isTake
;
/// <summary>
/// 是否上板
/// </summary>
public
bool
IsTake
{
get
{
return
isTake
;
}
set
{
isTake
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
IsTake
));
}
}
#
endregion
}
}
}
}
VIZ.Package.Domain/VIZ.Package.Domain.csproj
View file @
8e81f46b
...
@@ -160,6 +160,8 @@
...
@@ -160,6 +160,8 @@
<Name>VIZ.Package.Storage</Name>
<Name>VIZ.Package.Storage</Name>
</ProjectReference>
</ProjectReference>
</ItemGroup>
</ItemGroup>
<ItemGroup />
<ItemGroup>
<Folder Include="Message\Control\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
</Project>
\ No newline at end of file
VIZ.Package.Module/Control/ViewModel/ControlViewModel.cs
View file @
8e81f46b
...
@@ -118,6 +118,22 @@ namespace VIZ.Package.Module
...
@@ -118,6 +118,22 @@ namespace VIZ.Package.Module
}
}
this
.
vizCommandService
.
SetEnabledUpdate
(
conn
,
true
);
this
.
vizCommandService
.
SetEnabledUpdate
(
conn
,
true
);
this
.
vizCommandService
.
Start
(
conn
,
ApplicationDomainEx
.
CurrentPage
.
Layer
);
this
.
vizCommandService
.
Start
(
conn
,
ApplicationDomainEx
.
CurrentPage
.
Layer
);
// 设置当前Take的模板
WPFHelper
.
BeginInvoke
(()
=>
{
if
(
ApplicationDomainEx
.
CurrentTake
!=
null
)
{
ApplicationDomainEx
.
CurrentTake
.
IsTake
=
false
;
}
ApplicationDomainEx
.
CurrentTake
=
ApplicationDomainEx
.
CurrentPage
;
if
(
ApplicationDomainEx
.
CurrentTake
!=
null
)
{
ApplicationDomainEx
.
CurrentTake
.
IsTake
=
true
;
}
});
});
});
}
}
...
...
VIZ.Package.Module/Page/Group/View/PageGroupView.xaml
View file @
8e81f46b
...
@@ -36,6 +36,9 @@
...
@@ -36,6 +36,9 @@
<fcore:Bool2SolidColorBrushConverter x:Key="RowHandleBgConverter"
<fcore:Bool2SolidColorBrushConverter x:Key="RowHandleBgConverter"
TrueBrush="#FF0078D7"
TrueBrush="#FF0078D7"
FalseBrush="Transparent"></fcore:Bool2SolidColorBrushConverter>
FalseBrush="Transparent"></fcore:Bool2SolidColorBrushConverter>
<fcore:Bool2SolidColorBrushConverter x:Key="RowHandleTakeConverter"
TrueBrush="#FF4E4BDE"
FalseBrush="Transparent"></fcore:Bool2SolidColorBrushConverter>
<!-- 列模板选择器 -->
<!-- 列模板选择器 -->
<common:ColumnDefintionGeneratorTemplateSelector x:Key="ColumnDefintionGeneratorTemplateSelector">
<common:ColumnDefintionGeneratorTemplateSelector x:Key="ColumnDefintionGeneratorTemplateSelector">
...
@@ -50,6 +53,8 @@
...
@@ -50,6 +53,8 @@
<dxg:GridColumn.CellTemplate>
<dxg:GridColumn.CellTemplate>
<DataTemplate>
<DataTemplate>
<Grid Background="{Binding Path=Row.IsOpen,Converter={StaticResource RowHandleBgConverter}}">
<Grid Background="{Binding Path=Row.IsOpen,Converter={StaticResource RowHandleBgConverter}}">
<Rectangle Fill="{Binding Path=Row.IsTake,Converter={StaticResource RowHandleTakeConverter}}"
Width="10" HorizontalAlignment="Left"></Rectangle>
<TextBlock Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center" Text="{Binding RowData.RowHandle,Converter={StaticResource RowHandleConverter}}"></TextBlock>
<TextBlock Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center" Text="{Binding RowData.RowHandle,Converter={StaticResource RowHandleConverter}}"></TextBlock>
</Grid>
</Grid>
</DataTemplate>
</DataTemplate>
...
...
VIZ.Package.Module/Preview/VizPreview/ViewModel/VizPreviewViewModel.cs
View file @
8e81f46b
...
@@ -288,7 +288,7 @@ namespace VIZ.Package.Module
...
@@ -288,7 +288,7 @@ namespace VIZ.Package.Module
/// </summary>
/// </summary>
private
void
RestartPreview
()
private
void
RestartPreview
()
{
{
if
(
DXMessageBox
.
Show
(
"是否重启
Viz
预览引擎?"
,
"提示"
,
MessageBoxButton
.
YesNo
)
!=
MessageBoxResult
.
Yes
)
if
(
DXMessageBox
.
Show
(
"是否重启预览引擎?"
,
"提示"
,
MessageBoxButton
.
YesNo
)
!=
MessageBoxResult
.
Yes
)
return
;
return
;
// 设置预览引擎未准备完毕
// 设置预览引擎未准备完毕
...
...
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