This commit is contained in:
Frank Skare
2021-05-16 16:49:43 +02:00
parent 45d3386a88
commit 0b28770d1a
31 changed files with 5677 additions and 17 deletions

View File

@@ -7,6 +7,7 @@ using System.Windows.Forms;
using System.Threading.Tasks;
using static mpvnet.Core;
using static TaskDialog.Msg;
namespace mpvnet
{
@@ -116,7 +117,7 @@ namespace mpvnet
if (IsStartedFromTerminal)
ConsoleHelp.WriteError(obj.ToString());
else
Msg.ShowError(obj.ToString());
MsgError(obj.ToString());
}
}
@@ -206,7 +207,7 @@ namespace mpvnet
Commands.Execute("show-setup-dialog");
else
Msg.Show("The setup dialog can be found in the context menu at:\n\nTools > Setup");
MsgInfo("The setup dialog can be found in the context menu at:\n\nTools > Setup");
RegistryHelp.SetValue(RegistryHelp.ApplicationKey, Folder.Startup, 1);
}

View File

@@ -8,6 +8,7 @@ using System.Text.RegularExpressions;
using System.Windows.Forms;
using static mpvnet.Core;
using static TaskDialog.Msg;
namespace mpvnet
{
@@ -39,7 +40,7 @@ namespace mpvnet
if (onlineVersion <= currentVersion)
{
if (showUpToDateMessage)
Msg.Show($"{Application.ProductName} is up to date.");
MsgInfo($"{Application.ProductName} is up to date.");
return;
}