2017-07-24 17:31:28 +02:00
|
|
|
|
/*
|
2019-01-09 11:25:21 +01:00
|
|
|
|
* Copyright (c) 2019 ETH Zürich, Educational Development and Technology (LET)
|
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-03-06 16:10:00 +01:00
|
|
|
|
using SafeExamBrowser.Contracts.UserInterface.Windows.Events;
|
2018-07-06 15:57:38 +02:00
|
|
|
|
|
2018-03-14 12:07:20 +01:00
|
|
|
|
namespace SafeExamBrowser.Contracts.UserInterface.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
|
|
|
|
|
{
|
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
|
|
|
|
}
|
|
|
|
|
}
|