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
f172032b
Commit
f172032b
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
1b065ccf
42a775ce
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
78 additions
and
11 deletions
+78
-11
VIZ.Package.Domain/Plugin/PluginInfo.cs
+14
-0
VIZ.Package.Module.Resource/Icons/icon_init_32x32.png
+0
-0
VIZ.Package.Module.Resource/Images/login_large2.png
+0
-0
VIZ.Package.Module.Resource/Images/logo_large.png
+0
-0
VIZ.Package.Module.Resource/VIZ.Package.Module.Resource.csproj
+7
-0
VIZ.Package.Module/Login/View/LoginView.xaml
+2
-2
VIZ.Package.Module/Main/View/MainView.xaml
+6
-0
VIZ.Package.Module/Main/View/MainView.xaml.cs
+2
-1
VIZ.Package.Module/Page/Group/View/PageGroupView.xaml
+16
-5
VIZ.Package.Module/Page/Group/ViewModel/PageGroupViewModel.cs
+27
-0
VIZ.Package.Module/Plugin/PluginPluginLifeCycle.cs
+1
-1
VIZ.Package/LoginWindow.xaml
+3
-2
VIZ.Package/logo.ico
+0
-0
No files found.
VIZ.Package.Domain/Plugin/PluginInfo.cs
View file @
f172032b
...
...
@@ -69,6 +69,20 @@ namespace VIZ.Package.Domain
#
endregion
#
region
Icon
--
图标
private
string
icon
;
/// <summary>
/// 图标
/// </summary>
public
string
Icon
{
get
{
return
icon
;
}
set
{
icon
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
Icon
));
}
}
#
endregion
#
region
ViewType
--
视图类型
private
Type
viewType
;
...
...
VIZ.Package.Module.Resource/Icons/icon_init_32x32.png
0 → 100644
View file @
f172032b
448 Bytes
VIZ.Package.Module.Resource/Images/login_large2.png
0 → 100644
View file @
f172032b
11.8 KB
VIZ.Package.Module.Resource/Images/logo_large.png
View file @
f172032b
7.92 KB
|
W:
|
H:
63.5 KB
|
W:
|
H:
2-up
Swipe
Onion skin
VIZ.Package.Module.Resource/VIZ.Package.Module.Resource.csproj
View file @
f172032b
...
...
@@ -258,5 +258,11 @@
<ItemGroup>
<Resource Include="Icons\icon_clear_32x32.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\icon_init_32x32.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Images\login_large2.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
VIZ.Package.Module/Login/View/LoginView.xaml
View file @
f172032b
...
...
@@ -27,8 +27,8 @@
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
</Grid.RowDefinitions>
<Image HorizontalAlignment="Center"
Source="/VIZ.Package.Module.Resource;component/Images/log
o_large
.png"></Image>
<Image HorizontalAlignment="Center"
Width="114" Height="114"
Source="/VIZ.Package.Module.Resource;component/Images/log
in_large2
.png"></Image>
<TextBlock Text="摩羯座播控系统" Grid.Row="1" VerticalAlignment="Center"
HorizontalAlignment="Center" FontSize="24"></TextBlock>
</Grid>
...
...
VIZ.Package.Module/Main/View/MainView.xaml
View file @
f172032b
...
...
@@ -37,6 +37,9 @@
<Setter Property="Caption" Value="{Binding Name}" />
<Setter Property="MinHeight" Value="60"></Setter>
<Setter Property="ShowCloseButton" Value="True"></Setter>
<Setter Property="CaptionImage" Value="{Binding Path=Icon}"></Setter>
<Setter Property="ShowCaptionImage" Value="True"></Setter>
<Setter Property="CaptionWidth" Value="16"></Setter>
<Setter Property="Closed" Value="{Binding Path=IsClosed,Mode=TwoWay}"></Setter>
</Style>
<Style TargetType="{x:Type dxdo:DocumentPanel}">
...
...
@@ -45,6 +48,9 @@
<Setter Property="Caption" Value="{Binding Name}" />
<Setter Property="MinHeight" Value="40"></Setter>
<Setter Property="ShowCloseButton" Value="True"></Setter>
<Setter Property="CaptionImage" Value="{Binding Path=Icon}"></Setter>
<Setter Property="ShowCaptionImage" Value="True"></Setter>
<Setter Property="CaptionWidth" Value="24"></Setter>
<Setter Property="Closed" Value="{Binding Path=IsClosed,Mode=TwoWay}"></Setter>
</Style>
</UserControl.Resources>
...
...
VIZ.Package.Module/Main/View/MainView.xaml.cs
View file @
f172032b
using
System
;
using
DevExpress.Xpf.Docking
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
...
...
VIZ.Package.Module/Page/Group/View/PageGroupView.xaml
View file @
f172032b
...
...
@@ -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 @
f172032b
...
...
@@ -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
// ======================================================================================
...
...
VIZ.Package.Module/Plugin/PluginPluginLifeCycle.cs
View file @
f172032b
...
...
@@ -42,7 +42,7 @@ namespace VIZ.Package.Module
info
.
ID
=
PLUGIN_ID
;
info
.
Name
=
PLUGIN_NAME
;
info
.
ViewType
=
typeof
(
PluginView
);
info
.
Icon
=
"/VIZ.Package.Module.Resource;component/Icons/icon_clear_32x32.png"
;
return
info
;
}
...
...
VIZ.Package/LoginWindow.xaml
View file @
f172032b
...
...
@@ -3,8 +3,9 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:module="clr-namespace:VIZ.Package.Module;assembly=VIZ.Package.Module"
Title="摩羯座播控系统" Height="600" Width="520" ControlBoxButtonSet="Close,Minimize"
WindowStartupLocation="CenterScreen">
Title="摩羯座播控系统" Height="600" Width="500" ControlBoxButtonSet="Close,Minimize"
ResizeMode="NoResize"
WindowStartupLocation="CenterScreen" BorderBrush="Black">
<module:LoginView></module:LoginView>
...
...
VIZ.Package/logo.ico
View file @
f172032b
No preview for this file type
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