2017-07-24 17:31:28 +02:00
|
|
|
|
/*
|
2024-03-05 18:37:42 +01:00
|
|
|
|
* Copyright (c) 2024 ETH Zürich, IT Services
|
2017-07-24 17:31:28 +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.UserInterface.Contracts.Windows.Events;
|
2018-07-06 15:57:38 +02:00
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
namespace SafeExamBrowser.UserInterface.Contracts.Windows
|
2017-07-24 17:31:28 +02:00
|
|
|
|
{
|
2018-03-06 11:38:12 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Defines the functionality of a window.
|
|
|
|
|
/// </summary>
|
2017-07-24 17:31:28 +02:00
|
|
|
|
public interface IWindow
|
|
|
|
|
{
|
2022-02-23 13:59:36 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Event fired when the window has been closed;
|
|
|
|
|
/// </summary>
|
|
|
|
|
event WindowClosedEventHandler Closed;
|
|
|
|
|
|
2017-07-28 09:12:17 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Event fired when the window is closing.
|
|
|
|
|
/// </summary>
|
2017-08-02 08:31:12 +02:00
|
|
|
|
event WindowClosingEventHandler Closing;
|
2017-07-28 09:12:17 +02:00
|
|
|
|
|
2017-07-24 17:31:28 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Brings the window to the foreground.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void BringToForeground();
|
2017-07-25 09:02:32 +02:00
|
|
|
|
|
2017-07-27 11:46:31 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Closes the window.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void Close();
|
|
|
|
|
|
2018-01-30 14:41:36 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Hides the window.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void Hide();
|
|
|
|
|
|
2017-07-25 09:02:32 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Shows the window to the user.
|
|
|
|
|
/// </summary>
|
2017-07-26 08:50:36 +02:00
|
|
|
|
void Show();
|
2017-07-24 17:31:28 +02:00
|
|
|
|
}
|
|
|
|
|
}
|