45 lines
1.4 KiB
C#
45 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
|
|
namespace eDosStation
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for DosimeterReturnSummary.xaml
|
|
/// </summary>
|
|
public partial class DosimeterReturnSummary : UserControl
|
|
{
|
|
public static readonly RoutedEvent CloseClickedEvent =
|
|
EventManager.RegisterRoutedEvent(
|
|
nameof(CloseClicked),
|
|
RoutingStrategy.Bubble,
|
|
typeof(RoutedEventHandler),
|
|
typeof(DosimeterDisplay));
|
|
|
|
public event RoutedEventHandler CloseClicked
|
|
{
|
|
add => AddHandler(CloseClickedEvent, value);
|
|
remove => RemoveHandler(CloseClickedEvent, value);
|
|
}
|
|
public DosimeterReturnSummary()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
private void BCloseExit_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
// Raise the event so parent controls/windows know "Close" was clicked
|
|
RaiseEvent(new RoutedEventArgs(CloseClickedEvent));
|
|
}
|
|
}
|
|
}
|