public Turn() { InitializeComponent(); Confirm.AddHandler(MouseLeftButtonDownEvent, new MouseButtonEventHandler(Accept_Click), true); Cancel.AddHandler(MouseLeftButtonDownEvent, new MouseButtonEventHandler(Cancel_Click), true); }