2017-07-07 15:46:32 +02:00
|
|
|
|
/*
|
2024-03-05 18:37:42 +01:00
|
|
|
|
* Copyright (c) 2024 ETH Zürich, IT Services
|
2017-07-07 15:46:32 +02:00
|
|
|
|
*
|
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
using SafeExamBrowser.I18n.Contracts;
|
|
|
|
|
using SafeExamBrowser.UserInterface.Contracts.Windows;
|
2018-02-07 13:25:49 +01:00
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
namespace SafeExamBrowser.UserInterface.Contracts.MessageBox
|
2017-07-07 15:46:32 +02:00
|
|
|
|
{
|
2018-03-06 11:38:12 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Defines the API for message boxes.
|
|
|
|
|
/// </summary>
|
2017-07-07 15:46:32 +02:00
|
|
|
|
public interface IMessageBox
|
|
|
|
|
{
|
2017-07-12 15:36:30 +02:00
|
|
|
|
/// <summary>
|
2018-01-19 09:23:09 +01:00
|
|
|
|
/// Shows a message box according to the specified parameters and returns the result chosen by the user.
|
2017-07-12 15:36:30 +02:00
|
|
|
|
/// </summary>
|
2021-02-09 23:07:09 +01:00
|
|
|
|
MessageBoxResult Show(string message, string title, MessageBoxAction action = MessageBoxAction.Ok, MessageBoxIcon icon = MessageBoxIcon.Information, IWindow parent = null);
|
2018-02-07 13:25:49 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Shows a message box according to the specified parameters and returns the result chosen by the user.
|
|
|
|
|
/// </summary>
|
2021-02-09 23:07:09 +01:00
|
|
|
|
MessageBoxResult Show(TextKey message, TextKey title, MessageBoxAction action = MessageBoxAction.Ok, MessageBoxIcon icon = MessageBoxIcon.Information, IWindow parent = null);
|
2017-07-07 15:46:32 +02:00
|
|
|
|
}
|
|
|
|
|
}
|