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
0101c2ae
Commit
0101c2ae
authored
May 08, 2023
by
wangonghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改咪咕bug
parent
770885ca
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
7 deletions
+26
-7
VIZ.Package.Module/Main/ViewModel/MainTopViewModel.cs
+23
-7
VIZ.Package.Service/DB/Page/PageService.cs
+3
-0
No files found.
VIZ.Package.Module/Main/ViewModel/MainTopViewModel.cs
View file @
0101c2ae
...
...
@@ -268,12 +268,28 @@ namespace VIZ.Package.Module
}
}
//调用关闭消息
// ProjectCloseMessage closemsg = new ProjectCloseMessage();
//ApplicationDomainEx.MessageManager.Send(closemsg);
//this.UpdateCommandStatus();
// 创建项目文件
SaveProjectWindow
window
=
new
SaveProjectWindow
();
window
.
ShowDialog
();
if
(
window
.
DialogResult
!=
true
)
return
;
//调用关闭消息
ProjectCloseMessage
closemsg
=
new
ProjectCloseMessage
();
ApplicationDomainEx
.
MessageManager
.
Send
(
closemsg
);
this
.
UpdateCommandStatus
();
SaveProjectWindowModel
vm
=
window
.
DataContext
as
SaveProjectWindowModel
;
if
(
vm
==
null
)
return
;
...
...
@@ -651,14 +667,14 @@ namespace VIZ.Package.Module
{
string
path
;
if
(
string
.
IsNullOrWhiteSpace
(
ApplicationDomainEx
.
VizConfig
.
PluginGroup
))
{
//
if (string.IsNullOrWhiteSpace(ApplicationDomainEx.VizConfig.PluginGroup))
//
{
path
=
System
.
IO
.
Path
.
Combine
(
AppDomain
.
CurrentDomain
.
BaseDirectory
,
"layout"
);
}
else
{
path
=
System
.
IO
.
Path
.
Combine
(
AppDomain
.
CurrentDomain
.
BaseDirectory
,
"layout"
,
ApplicationDomainEx
.
VizConfig
.
PluginGroup
);
}
//
}
//
else
//
{
//
path = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "layout", ApplicationDomainEx.VizConfig.PluginGroup);
//
}
return
path
;
}
...
...
VIZ.Package.Service/DB/Page/PageService.cs
View file @
0101c2ae
...
...
@@ -301,9 +301,12 @@ namespace VIZ.Package.Service
dest
.
Save
(
ms
,
System
.
Drawing
.
Imaging
.
ImageFormat
.
Jpeg
);
ms
.
Position
=
0
;
if
(
ApplicationDomainEx
.
ProjectDbContext
.
SceneThumbnailCache
!=
null
)
{
ApplicationDomainEx
.
ProjectDbContext
.
SceneThumbnailCache
.
Upload
(
id
,
$"
{
id
}
"
,
ms
);
}
}
}
}
catch
(
Exception
ex
)
...
...
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