custom MessageBox for YesNo/YesNoCancel button modes

This commit is contained in:
n00mkrad
2022-07-24 22:30:30 +02:00
parent 54fb84de23
commit e6034a87b4
15 changed files with 165 additions and 45 deletions

View File

@@ -14,6 +14,7 @@ using Flowframes.MiscUtils;
using Flowframes.Os;
using System.Collections.Generic;
using Newtonsoft.Json;
using Flowframes.Ui;
namespace Flowframes.Main
{
@@ -68,7 +69,7 @@ namespace Flowframes.Main
catch (Exception e)
{
Logger.Log("FramesToVideo Error: " + e.Message, false);
MessageBox.Show("An error occured while trying to convert the interpolated frames to a video.\nCheck the log for details.");
UiUtils.ShowMessageBox("An error occured while trying to convert the interpolated frames to a video.\nCheck the log for details.", UiUtils.MessageType.Error);
}
}
@@ -252,7 +253,7 @@ namespace Flowframes.Main
Logger.Log("ChunksToVideo Error: " + e.Message, isBackup);
if (!isBackup)
MessageBox.Show("An error occured while trying to merge the video chunks.\nCheck the log for details.");
UiUtils.ShowMessageBox("An error occured while trying to merge the video chunks.\nCheck the log for details.", UiUtils.MessageType.Error);
}
Logger.Log($"Merged video chunks in {sw}", true);