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
dd3090b5
Commit
dd3090b5
authored
Feb 15, 2023
by
wangonghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交修改媒体资源库保存不成功
parent
1ea905f1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletions
+19
-1
VIZ.Package.Module/Resource/MediaResource/View/MediaResourceView.xaml
+2
-0
VIZ.Package.Module/Resource/MediaResource/ViewModel/MediaResourcePanelViewModel.cs
+15
-0
VIZ.Package.Module/Setting/Media/ViewModel/MediaSettingViewModel.cs
+2
-1
No files found.
VIZ.Package.Module/Resource/MediaResource/View/MediaResourceView.xaml
View file @
dd3090b5
...
...
@@ -26,6 +26,8 @@
<MenuItem Header="删除文件" Command="{Binding Path=PlacementTarget.DataContext.DeleteFileCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>
<MenuItem Header="移动文件" Command="{Binding Path=PlacementTarget.DataContext.MoveFileCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>
<MenuItem Header="导出素材" Command="{Binding Path=PlacementTarget.DataContext.ExportFileCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>
<!--<MenuItem Header="编辑图片" Command="{Binding Path=PlacementTarget.DataContext.EditImageCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>-->
<Separator/>
<MenuItem Header="文件列表" Command="{Binding Path=PlacementTarget.DataContext.FilesListCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>
</ContextMenu>
...
...
VIZ.Package.Module/Resource/MediaResource/ViewModel/MediaResourcePanelViewModel.cs
View file @
dd3090b5
...
...
@@ -65,6 +65,7 @@ namespace VIZ.Package.Module
this
.
FileFilterCommand
=
new
VCommand
<
ResourceFileType
>(
this
.
FileFilter
);
this
.
FileRowFilterCommand
=
new
DevExpress
.
Mvvm
.
DelegateCommand
<
RowFilterArgs
>(
this
.
FileRowFilter
);
this
.
FileDoubleClickCommand
=
new
VCommand
(
this
.
FileDoubleClick
);
this
.
EditImageCommand
=
new
VCommand
(
EditImage
);
//this.FileContextMenuOpendCommand = new VCommand(this.FileContextMenuOpend);
//this.AddProgramTemplateCommand = new VCommand(this.AddProgramTemplate, this.CanAddProgramTemplate);
// this.CopyFilePathCommand = new VCommand(this.CopyFilePath, this.CanCopyFilePath);
...
...
@@ -790,6 +791,20 @@ namespace VIZ.Package.Module
}
#
endregion
#
region
/// <summary>
/// 编辑图片
/// </summary>
public
VCommand
EditImageCommand
{
get
;
set
;
}
private
void
EditImage
()
{
}
#
endregion
...
...
VIZ.Package.Module/Setting/Media/ViewModel/MediaSettingViewModel.cs
View file @
dd3090b5
...
...
@@ -107,7 +107,7 @@ namespace VIZ.Package.Module
config
.
Url
=
this
.
Url
;
config
.
MediaFilter
=
this
.
MediaFilter
;
ApplicationDomainEx
.
LocalDbContext
.
MediaConfig
.
Up
date
(
config
);
ApplicationDomainEx
.
LocalDbContext
.
MediaConfig
.
Up
sert
(
config
);
}
}
}
\ 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