Pull down popup from common.

This commit is contained in:
2022-11-15 17:17:30 +08:00
parent cb3e3e5f28
commit 3a54d2023f
10 changed files with 47 additions and 47 deletions

View File

@@ -121,7 +121,7 @@ namespace Cryville.Crtr.Browsing {
resources = converter.ConvertFrom(file);
}
catch (Exception ex) {
CallHelper.ShowMessageBox(ex.Message);
Popup.Create(ex.Message);
return false;
}
foreach (var res in resources) {

View File

@@ -59,11 +59,11 @@ namespace Cryville.Crtr.Browsing {
private void OnAddDialogClosed() {
if (_dialog.FileName == null) return;
if (ResourceManager.ImportItemFrom(_dialog.FileName)) {
CallHelper.ShowMessageBox("Import succeeded");
Popup.Create("Import succeeded");
OnPathClicked(ResourceManager.CurrentDirectory.Length - 1);
}
else {
CallHelper.ShowMessageBox("Import failed");
Popup.Create("Import failed");
}
}
}