Commit 290c7efc authored by 潘栩锋's avatar 潘栩锋 🚴

1.添加 数据浏览器 选择profile 添加 等待提示。

2.修复 数据浏览器 DbViewerModel Load() 执行了2次
3.修复 AD盒 在 Load() 时,会把 Backup_xxx 设置到 xxx 且设置到 AD盒。我不想这样
parent 748f5fe8
...@@ -37,9 +37,6 @@ namespace FLY.Thick.FilmCasting.UI.DbViewer.Core ...@@ -37,9 +37,6 @@ namespace FLY.Thick.FilmCasting.UI.DbViewer.Core
public DbHelper mDbHelper; public DbHelper mDbHelper;
public DbViewerModel() public DbViewerModel()
{ {
Load();
} }
public void Init() public void Init()
{ {
......
...@@ -154,12 +154,25 @@ namespace FLY.Thick.FilmCasting.UI.DbViewer ...@@ -154,12 +154,25 @@ namespace FLY.Thick.FilmCasting.UI.DbViewer
async void Search() async void Search()
{ {
var controller = await App.MetroWindow.ShowProgressAsync("请等待...", "开始搜索",
settings: new MetroDialogSettings()
{
NegativeButtonText = "停止",
AnimateShow = false,
AnimateHide = false,
});
//controller.SetCancelable(true);
controller.SetIndeterminate();
var list = dbHelper.GetProfileList(BeginDate, EndDate, ProductNameFilter, BatchFilter); var list = dbHelper.GetProfileList(BeginDate, EndDate, ProductNameFilter, BatchFilter);
Profiles.Clear(); Profiles.Clear();
foreach (var p in list) foreach (var p in list)
{ {
Profiles.Add(p); Profiles.Add(p);
} }
await controller.CloseAsync();
await App.MetroWindow.ShowMessageAsync("搜索完成", await App.MetroWindow.ShowMessageAsync("搜索完成",
$"搜索结果 为 {Profiles.Count}条"); $"搜索结果 为 {Profiles.Count}条");
return; return;
......
Subproject commit 6644d9a93b89a7d8ebf4afa11171618e07e099ef Subproject commit 8db7013a6338e3aa96a9f23f14974ea1898ba606
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