Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Thick-Common
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
Thick-Common
Commits
aa01f838
Commit
aa01f838
authored
Apr 07, 2024
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 FLY.Thick.Base.UI 不使用 mahapp 的 dialog
parent
3ba68a2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
26 deletions
+4
-26
PgGrid.xaml.cs
Project.FLY.Thick.Base/FLY.Thick.Base.UI/PgGrid.xaml.cs
+4
-26
No files found.
Project.FLY.Thick.Base/FLY.Thick.Base.UI/PgGrid.xaml.cs
View file @
aa01f838
...
...
@@ -471,21 +471,10 @@ namespace FLY.Thick.Base.UI
if
(
SeriesInfos
.
All
(
s
=>
s
.
ADs
.
Count
()
==
0
))
{
await
metroWindow
.
ShowMessageAsync
(
"输出失败"
,
"没有任何数据"
);
MessageBox
.
Show
(
"没有任何数据"
,
"输出失败"
,
MessageBoxButton
.
OK
,
MessageBoxImage
.
Error
);
return
;
}
var
controller
=
await
metroWindow
.
ShowProgressAsync
(
"请等待..."
,
"开始导出"
,
settings
:
new
MetroDialogSettings
()
{
NegativeButtonText
=
"停止"
,
AnimateShow
=
false
,
AnimateHide
=
false
,
});
//controller.SetCancelable(true);
controller
.
SetIndeterminate
();
var
ret
=
await
Task
.
Factory
.
StartNew
(()
=>
{
try
...
...
@@ -503,21 +492,10 @@ namespace FLY.Thick.Base.UI
return
false
;
}
});
controller
.
SetProgress
(
1
);
if
(
ret
)
{
controller
.
SetTitle
(
"输出成功"
);
controller
.
SetMessage
(
$"导出到
{
filePath
}
"
);
}
if
(
ret
==
true
)
MessageBox
.
Show
(
$"导出到
{
filePath
}
"
,
"输出成功"
,
MessageBoxButton
.
OK
,
MessageBoxImage
.
Information
);
else
{
controller
.
SetTitle
(
"输出失败"
);
controller
.
SetMessage
(
$"文件写入失败"
);
}
await
Task
.
Delay
(
1000
);
await
controller
.
CloseAsync
();
MessageBox
.
Show
(
$"未知错误"
,
"输出失败"
,
MessageBoxButton
.
OK
,
MessageBoxImage
.
Error
);
}
void
SaveToXlsxAD
(
ExcelPackage
p
)
...
...
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