Remotely/Agent.Installer.Win/Services/MessageBoxEx.cs
2020-02-23 02:38:27 +00:00

22 lines
647 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace Remotely.Agent.Installer.Win.Services
{
public static class MessageBoxEx
{
public static MessageBoxResult Show(string message, string caption, MessageBoxButton messageBoxButton, MessageBoxImage messageBoxImage)
{
if (!CommandLineParser.CommandLineArgs.ContainsKey("quiet"))
{
return MessageBox.Show(message, caption, messageBoxButton, messageBoxImage);
}
return MessageBoxResult.None;
}
}
}