2017-08-22 10:29:00 +02:00
|
|
|
|
/*
|
2019-01-09 11:25:21 +01:00
|
|
|
|
* Copyright (c) 2019 ETH Zürich, Educational Development and Technology (LET)
|
2017-08-22 10:29:00 +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/.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
using System.Windows.Controls;
|
2019-01-11 15:32:47 +01:00
|
|
|
|
using SafeExamBrowser.UserInterface.Desktop.ViewModels;
|
2017-08-22 10:29:00 +02:00
|
|
|
|
|
2019-01-11 15:32:47 +01:00
|
|
|
|
namespace SafeExamBrowser.UserInterface.Desktop.Controls
|
2017-08-22 10:29:00 +02:00
|
|
|
|
{
|
2019-03-15 11:38:59 +01:00
|
|
|
|
public partial class ActionCenterClock : UserControl
|
2017-08-22 10:29:00 +02:00
|
|
|
|
{
|
2019-03-15 11:38:59 +01:00
|
|
|
|
private DateTimeViewModel model;
|
2017-08-22 10:29:00 +02:00
|
|
|
|
|
2019-03-15 11:38:59 +01:00
|
|
|
|
public ActionCenterClock()
|
2017-08-22 10:29:00 +02:00
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2019-03-15 11:38:59 +01:00
|
|
|
|
InitializeControl();
|
|
|
|
|
}
|
2017-08-22 10:29:00 +02:00
|
|
|
|
|
2019-03-15 11:38:59 +01:00
|
|
|
|
private void InitializeControl()
|
|
|
|
|
{
|
|
|
|
|
model = new DateTimeViewModel(true);
|
2017-08-22 10:29:00 +02:00
|
|
|
|
DataContext = model;
|
|
|
|
|
TimeTextBlock.DataContext = model;
|
|
|
|
|
DateTextBlock.DataContext = model;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|