2017-07-11 15:29:29 +02:00
|
|
|
|
/*
|
2018-01-16 08:24:00 +01:00
|
|
|
|
* Copyright (c) 2018 ETH Zürich, Educational Development and Technology (LET)
|
2017-07-11 15:29:29 +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/.
|
|
|
|
|
*/
|
|
|
|
|
|
2017-07-12 15:36:30 +02:00
|
|
|
|
using System;
|
2017-07-14 10:28:59 +02:00
|
|
|
|
using SafeExamBrowser.Contracts.Configuration;
|
2017-07-12 15:36:30 +02:00
|
|
|
|
|
2017-08-15 15:30:31 +02:00
|
|
|
|
namespace SafeExamBrowser.Contracts.UserInterface.Taskbar
|
2017-07-11 15:29:29 +02:00
|
|
|
|
{
|
2017-08-15 15:30:31 +02:00
|
|
|
|
public delegate void ApplicationButtonClickedEventHandler(Guid? instanceId = null);
|
2017-07-11 15:29:29 +02:00
|
|
|
|
|
2017-08-15 15:30:31 +02:00
|
|
|
|
public interface IApplicationButton
|
2017-07-11 15:29:29 +02:00
|
|
|
|
{
|
2017-07-12 15:36:30 +02:00
|
|
|
|
/// <summary>
|
2017-08-15 15:30:31 +02:00
|
|
|
|
/// Event fired when the user clicked on the application button. If multiple instances of an application are active,
|
|
|
|
|
/// the handler is only executed when the user selects one of the instances.
|
2017-07-12 15:36:30 +02:00
|
|
|
|
/// </summary>
|
2017-08-15 15:30:31 +02:00
|
|
|
|
event ApplicationButtonClickedEventHandler Clicked;
|
2017-07-12 15:36:30 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-08-02 08:31:12 +02:00
|
|
|
|
/// Registers a new instance of an application, to be started / displayed if the user clicked the taskbar button.
|
2017-07-12 15:36:30 +02:00
|
|
|
|
/// </summary>
|
2017-07-14 10:28:59 +02:00
|
|
|
|
void RegisterInstance(IApplicationInstance instance);
|
2017-07-11 15:29:29 +02:00
|
|
|
|
}
|
|
|
|
|
}
|