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
3e43799f
Commit
3e43799f
authored
Feb 17, 2023
by
liulongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
進度狀態
parent
4eaef4ab
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
5 deletions
+47
-5
VIZ.Package.Module.Resource/Icons/icon_init_32x32.png
+0
-0
VIZ.Package.Module.Resource/VIZ.Package.Module.Resource.csproj
+4
-0
VIZ.Package.Module/Page/Group/View/PageGroupView.xaml
+16
-5
VIZ.Package.Module/Page/Group/ViewModel/PageGroupViewModel.cs
+27
-0
No files found.
VIZ.Package.Module.Resource/Icons/icon_init_32x32.png
0 → 100644
View file @
3e43799f
448 Bytes
VIZ.Package.Module.Resource/VIZ.Package.Module.Resource.csproj
View file @
3e43799f
...
...
@@ -258,5 +258,8 @@
<ItemGroup>
<Resource Include="Icons\icon_clear_32x32.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\icon_init_32x32.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
VIZ.Package.Module/Page/Group/View/PageGroupView.xaml
View file @
3e43799f
...
...
@@ -46,6 +46,12 @@
ToolTip="清理内存" Margin="5,0,0,0"
IconWidth="24" IconHeight="24" Width="24" Height="24"
Command="{Binding TakeClearCommand}"></fcommon:IconButton>
<!-- 初始化 -->
<fcommon:IconButton Icon="/VIZ.Package.Module.Resource;component/Icons/icon_init_32x32.png"
Style="{StaticResource IconButton_Menu_Mask}"
ToolTip="初始化" Margin="5,0,0,0"
IconWidth="24" IconHeight="24" Width="24" Height="24"
Command="{Binding TakeInitAllCommand}"></fcommon:IconButton>
</StackPanel>
</Border>
...
...
@@ -131,11 +137,16 @@
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 Header="加载" ReadOnly="True" AllowSorting="False" AllowColumnFiltering="False" AllowEditing="False">
<dxg:GridColumn.CellTemplate>
<DataTemplate>
<Grid Background="Transparent" ToolTip="{Binding Path=Row.SceneInfo.TakeInitedMessage}">
<dxe:ProgressBarEdit Minimum="0" Maximum="1" ContentDisplayMode="Value"
DisplayFormatString="{}{0:P}" Height="30" ShowBorder="False" Background="Transparent"
EditValue="{Binding Path=Row.SceneInfo.TakeInitedProgress}"></dxe:ProgressBarEdit>
</Grid>
</DataTemplate>
</dxg:GridColumn.CellTemplate>
</dxg:GridColumn>
<dxg:GridColumn Header="引擎类型" FieldName="EngineType" ReadOnly="True" AllowSorting="False" AllowColumnFiltering="False"></dxg:GridColumn>
<dxg:GridColumn Header="模板类型" ReadOnly="True" AllowSorting="False" AllowColumnFiltering="False"
...
...
VIZ.Package.Module/Page/Group/ViewModel/PageGroupViewModel.cs
View file @
3e43799f
...
...
@@ -50,6 +50,7 @@ namespace VIZ.Package.Module
this
.
UpdateCommand
=
new
VCommand
(
this
.
Update
);
this
.
TakeClearCommand
=
new
VCommand
(
this
.
TakeClear
);
this
.
TakeInitCommand
=
new
VCommand
(
this
.
TakeInit
);
this
.
TakeInitAllCommand
=
new
VCommand
(
this
.
TakeInitAll
);
}
/// <summary>
...
...
@@ -417,6 +418,32 @@ namespace VIZ.Package.Module
#
endregion
#
region
TakeInitAllCommand
--
初始化全部命令
/// <summary>
/// 初始化全部命令
/// </summary>
public
VCommand
TakeInitAllCommand
{
get
;
set
;
}
/// <summary>
/// 初始化全部
/// </summary>
private
void
TakeInitAll
()
{
if
(
this
.
SelectedPageGroupModel
==
null
)
return
;
if
(
this
.
SelectedPageGroupModel
.
Pages
==
null
||
this
.
SelectedPageGroupModel
.
Pages
.
Count
==
0
)
return
;
List
<
PageModel
>
pages
=
this
.
SelectedPageGroupModel
.
Pages
.
ToList
();
// 开始初始化
this
.
pageViewModelHelper
.
BeginTakeInit
(
pages
);
}
#
endregion
// ======================================================================================
// Message
// ======================================================================================
...
...
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