Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.TVP
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.TVP
Commits
b4551ab3
Commit
b4551ab3
authored
Dec 26, 2022
by
liulongfei
Browse files
Options
Browse Files
Download
Plain Diff
control object 开发
parents
5dba8e4c
7f8595cd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
36 deletions
+42
-36
VIZ.TVP.Module/Resource/LocalResource/ViewModel/LocalResourceViewModel.cs
+32
-32
VIZ.TVP.Plugin.Test/Test/TestPluginLifeCycle.cs
+1
-1
VIZ.TVP/config/plugin_config.csv
+9
-3
No files found.
VIZ.TVP.Module/Resource/LocalResource/ViewModel/LocalResourceViewModel.cs
View file @
b4551ab3
...
@@ -97,7 +97,7 @@ namespace VIZ.TVP.Module
...
@@ -97,7 +97,7 @@ namespace VIZ.TVP.Module
selectedFolderModel
=
value
;
selectedFolderModel
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectedFolderModel
));
this
.
RaisePropertyChanged
(
nameof
(
SelectedFolderModel
));
// 更新文件模型
// 更新文件模型
this
.
vizResourceFileController
.
UpdateFileModels
(
value
);
//
this.vizResourceFileController.UpdateFileModels(value);
}
}
}
}
...
@@ -498,28 +498,28 @@ namespace VIZ.TVP.Module
...
@@ -498,28 +498,28 @@ namespace VIZ.TVP.Module
catch
{
}
catch
{
}
// 为目录做迭代,添加目录
// 为目录做迭代,添加目录
directories
.
ForEach
(
directoryPath
=>
//
directories.ForEach(directoryPath =>
{
//
{
// 创建目录项
//
// 创建目录项
var
subItem
=
new
TreeViewItem
()
//
var subItem = new TreeViewItem()
{
//
{
// 将标题设置为文件夹名称
//
// 将标题设置为文件夹名称
Header
=
GetFileFolderName
(
directoryPath
),
//
Header = GetFileFolderName(directoryPath),
// 标记为完整路径
//
// 标记为完整路径
Tag
=
directoryPath
//
Tag = directoryPath
};
//
};
// 添加虚拟项目,以便我们可以扩展文件夹
//
// 添加虚拟项目,以便我们可以扩展文件夹
subItem
.
Items
.
Add
(
null
);
//
subItem.Items.Add(null);
// 处理扩展
//
// 处理扩展
subItem
.
Expanded
+=
Folder_Expanded
;
//
subItem.Expanded += Folder_Expanded;
// 将此项目添加到父项
//
// 将此项目添加到父项
item
.
Items
.
Add
(
subItem
);
//
item.Items.Add(subItem);
});
//
});
#
endregion
#
endregion
#
region
Get
Files
#
region
Get
Files
...
@@ -539,20 +539,20 @@ namespace VIZ.TVP.Module
...
@@ -539,20 +539,20 @@ namespace VIZ.TVP.Module
catch
{
}
catch
{
}
// 为目录做迭代,添加文件
// 为目录做迭代,添加文件
Files
.
ForEach
(
filePath
=>
//
Files.ForEach(filePath =>
{
//
{
// 创建文件
//
// 创建文件
var
subItem
=
new
TreeViewItem
()
//
var subItem = new TreeViewItem()
{
//
{
// 将标题设置为文件名称
//
// 将标题设置为文件名称
Header
=
GetFileFolderName
(
filePath
),
//
Header = GetFileFolderName(filePath),
// 标记为完整路径
//
// 标记为完整路径
Tag
=
filePath
//
Tag = filePath
};
//
};
// 将此项目添加到父项
//
// 将此项目添加到父项
item
.
Items
.
Add
(
subItem
);
//
item.Items.Add(subItem);
});
//
});
#
endregion
#
endregion
...
...
VIZ.TVP.Plugin.Test/Test/TestPluginLifeCycle.cs
View file @
b4551ab3
...
@@ -25,7 +25,7 @@ namespace VIZ.TVP.Plugin.Test
...
@@ -25,7 +25,7 @@ namespace VIZ.TVP.Plugin.Test
/// <summary>
/// <summary>
/// 插件显示名称
/// 插件显示名称
/// </summary>
/// </summary>
public
const
string
PLUGIN_DISPLAY_NAME
=
"
测试插件
"
;
public
const
string
PLUGIN_DISPLAY_NAME
=
"
TestPluginView
"
;
/// <summary>
/// <summary>
/// 注册
/// 注册
...
...
VIZ.TVP/config/plugin_config.csv
View file @
b4551ab3
ID,PluginID,Group,DisplayName,Type
ID,PluginID,Group,DisplayName,Type
1,TestPlugin,,Բ,TemplatePlugin
1,TestPlugin,,TestPluginView,TemplatePlugin
2,DayMatchUI,CBA,DayMatchUI,TemplatePlugin
2,DayMatchUI,CBA,DayMatchUI,TemplatePlugin
\ No newline at end of file
3,RoundMatchUI,CBA,RoundMatchUI,TemplatePlugin
4,TeamStandingUI,CBA,TeamStandingUI,TemplatePlugin
5,SinglePlayerUI,CBA,SinglePlayerUI,TemplatePlugin
6,PlayerComPareUI,CBA,PlayerComPareUI,TemplatePlugin
6,TeamStatsUI,CBA,TeamStatsUI,TemplatePlugin
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