private void AddException_Click(object sender, RoutedEventArgs e) { AddFileInExceptionEvent?.Invoke(this, new AntivirusLibrary.Events.AddFileInExceptionEventArgs(((Button)sender).DataContext.ToString())); // Content = "{Binding AddInExceptionButtonContext}" }
private void AddInException_Click(object sender, RoutedEventArgs e) { AddFileInExceptionEvent?.Invoke(this, new AntivirusLibrary.Events.AddFileInExceptionEventArgs(((AntivirusLibrary.ProcessDange)((Button)sender).DataContext).Path)); }