From 274d3641eb8327253f99f4b7bd38823f54426424 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 30 Oct 2022 16:24:22 +0100 Subject: [PATCH] Fixed nullable issues --- I18N Commander/UI WinForms/Components/Translation.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/I18N Commander/UI WinForms/Components/Translation.cs b/I18N Commander/UI WinForms/Components/Translation.cs index 80cee88..7f664cc 100644 --- a/I18N Commander/UI WinForms/Components/Translation.cs +++ b/I18N Commander/UI WinForms/Components/Translation.cs @@ -22,6 +22,9 @@ public sealed partial class Translation : UserControl { this.InitializeComponent(); this.Dock = DockStyle.Top; + + this.saveTimer = new Timer(); + this.translationTimer = new Timer(); } public Translation(AppSettings.CultureInfo cultureInfo) @@ -121,7 +124,7 @@ public sealed partial class Translation : UserControl } } - private async void SaveChanges(object? sender, ElapsedEventArgs e) + private async void SaveChanges(object? sender, ElapsedEventArgs? e) { if (this.currentTranslationId > -1) { @@ -135,7 +138,7 @@ public sealed partial class Translation : UserControl this.isManualOnlyMode = this.checkBoxManual.Checked; } - private async void TriggerTranslateNow(object? sender, ElapsedEventArgs e) + private async void TriggerTranslateNow(object? sender, ElapsedEventArgs? e) { if (this.currentTranslationId < 0 || this.isDeepLSourceCulture == false) return;