Resolve "Add code generator for non win forms projects" #78

Merged
thorsten merged 16 commits from 6-add-code-generator-for-non-win-forms-projects into main 2022-11-01 18:28:15 +00:00
Showing only changes of commit 274d3641eb - Show all commits

View File

@ -22,6 +22,9 @@ public sealed partial class Translation : UserControl
{ {
this.InitializeComponent(); this.InitializeComponent();
this.Dock = DockStyle.Top; this.Dock = DockStyle.Top;
this.saveTimer = new Timer();
this.translationTimer = new Timer();
} }
public Translation(AppSettings.CultureInfo cultureInfo) 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) if (this.currentTranslationId > -1)
{ {
@ -135,7 +138,7 @@ public sealed partial class Translation : UserControl
this.isManualOnlyMode = this.checkBoxManual.Checked; 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) if (this.currentTranslationId < 0 || this.isDeepLSourceCulture == false)
return; return;