You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
684 B
23 lines
684 B
using System.Windows;
|
|
|
|
namespace leak_test_project.Utils
|
|
{
|
|
public interface IDialogService
|
|
{
|
|
void ShowMessage(string message, string title = "알림");
|
|
void ShowWarning(string message, string title = "경고");
|
|
}
|
|
|
|
public class DefaultDialogService : IDialogService
|
|
{
|
|
public void ShowMessage(string message, string title = "알림")
|
|
{
|
|
MessageBox.Show(message, title, MessageBoxButton.OK, MessageBoxImage.Information);
|
|
}
|
|
|
|
public void ShowWarning(string message, string title = "경고")
|
|
{
|
|
MessageBox.Show(message, title, MessageBoxButton.OK, MessageBoxImage.Warning);
|
|
}
|
|
}
|
|
}
|
|
|