Renamed RoutedEventArgs e to RoutedEventArgs evt

This commit is contained in:
2023-03-11 15:29:35 +01:00
parent e3e30bfc56
commit 8d61fdd35e
6 changed files with 51 additions and 103 deletions

View File

@ -7,45 +7,35 @@ using System.Runtime.Intrinsics.X86;
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;
using WGneu.Documents;
using WGneu.Helpers;
using WGneu.Models;
namespace WGneu.Windows {
public partial class MainWindow : Window {
private readonly WgContext _context = new WgContext();
private readonly WgContext Context = new();
public MainWindow() {
InitializeComponent();
}
private void Window_Loaded(object sender, RoutedEventArgs e) {
_context.Countries.Load();
private void Window_Loaded(object sender, RoutedEventArgs evt) {
Context.Countries.Load();
Button4.IsEnabled = App.IsPrintingReady;
}
protected override void OnClosing(CancelEventArgs e) {
_context.Dispose();
base.OnClosing(e);
protected override void OnClosing(CancelEventArgs evt) {
Context.Dispose();
base.OnClosing(evt);
}
private void Button2_Click(object sender, EventArgs e) {
private void Button2_Click(object sender, RoutedEventArgs evt) {
var w = new MemberListWindow();
w.Show();
}
private void Button4_Click(object sender, EventArgs e) {
private void Button4_Click(object sender, RoutedEventArgs evt) {
Utils.RunBackground("PDF Generation", async () => {
using var letter = new BusinessLetter("Test Dokument", _context.Members.First());
using var letter = new BusinessLetter("Test Dokument", Context.Members.First());
await letter.Generate();
letter.Show();
});