2017-07-17 16:59:50 +02:00
|
|
|
|
/*
|
2018-01-16 08:24:00 +01:00
|
|
|
|
* Copyright (c) 2018 ETH Zürich, Educational Development and Technology (LET)
|
2017-07-17 16:59:50 +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/.
|
|
|
|
|
*/
|
|
|
|
|
|
2018-06-21 08:54:43 +02:00
|
|
|
|
using System.ComponentModel;
|
2017-07-17 16:59:50 +02:00
|
|
|
|
using System.Windows;
|
|
|
|
|
using System.Windows.Controls;
|
2018-02-20 15:15:26 +01:00
|
|
|
|
using SafeExamBrowser.Contracts.UserInterface.Taskbar;
|
2018-07-06 15:57:38 +02:00
|
|
|
|
using SafeExamBrowser.Contracts.UserInterface.Taskbar.Events;
|
2017-07-17 16:59:50 +02:00
|
|
|
|
|
2017-08-22 08:39:49 +02:00
|
|
|
|
namespace SafeExamBrowser.UserInterface.Windows10.Controls
|
2017-07-17 16:59:50 +02:00
|
|
|
|
{
|
|
|
|
|
public partial class QuitButton : UserControl
|
|
|
|
|
{
|
2018-02-20 15:15:26 +01:00
|
|
|
|
public event QuitButtonClickedEventHandler Clicked;
|
|
|
|
|
|
2017-07-17 16:59:50 +02:00
|
|
|
|
public QuitButton()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Button_Click(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
2018-06-21 08:54:43 +02:00
|
|
|
|
Clicked?.Invoke(new CancelEventArgs());
|
2017-07-17 16:59:50 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|