private void Abort_Click(object sender, RoutedEventArgs e) { Guid guid = ((RequestView)((MenuItem)sender).DataContext).ID; _schedulingCommunicationChannel.Abort(guid); }