Commit dd3090b5 by wangonghui

提交修改媒体资源库保存不成功

parent 1ea905f1
......@@ -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>
......
......@@ -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
......
......@@ -107,7 +107,7 @@ namespace VIZ.Package.Module
config.Url = this.Url;
config.MediaFilter = this.MediaFilter;
ApplicationDomainEx.LocalDbContext.MediaConfig.Update(config);
ApplicationDomainEx.LocalDbContext.MediaConfig.Upsert(config);
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment