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 { /// /// Interaction logic for DosimeterReturnSummary.xaml /// 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)); } } }