Initial commit: EngineeringSync v1.0.0
Vollständige Implementierung des EngineeringSync-Middleware-Tools: - Windows Service (Kestrel :5050) mit FileSystemWatcher + SignalR - WPF Tray-App mit PendingChanges- und Projektverwaltungs-Fenster - Setup-Wizard (8-Schritte-Installer) - SQLite/EF Core Datenschicht (WAL-Modus) - SHA-256-basiertes Debouncing (2s Fenster) - Backup-System mit konfigurierbarer Aufbewahrung Bugfixes & Verbesserungen: - BUG-1: AppDbContext OnConfiguring invertierte Bedingung behoben - BUG-2: Event-Handler-Leak in TrayApp (Fenster-Singleton-Pattern) - BUG-3: ProjectConfigChanged SignalR-Signal in allen CRUD-Endpoints - BUG-5: Rename-Sync löscht alte Datei im Simulations-Ordner - BUG-6: Doppeltes Dispose von SignalR verhindert - BUG-7: Registry-Deinstallation nur EngineeringSync-Eintrag entfernt - S1: Path-Traversal-Schutz via SafeCombine() im SyncManager - E1: FSW Buffer 64KB + automatischer Re-Scan bei Overflow - E2: Retry-Logik (3x) für gesperrte Dateien mit exponentiellem Backoff - E4: Channel.Writer.TryComplete() beim Shutdown - C2: HubMethodNames-Konstanten statt Magic Strings - E3: Pagination in Changes-API (page/pageSize Query-Parameter) - A1: Fire-and-Forget mit try/catch + Logging Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
using System.Windows;
|
||||
using EngineeringSync.TrayApp.ViewModels;
|
||||
using Microsoft.Win32;
|
||||
|
||||
namespace EngineeringSync.TrayApp.Views;
|
||||
|
||||
public partial class ProjectManagementWindow : Window
|
||||
{
|
||||
private readonly ProjectManagementViewModel _vm;
|
||||
|
||||
public ProjectManagementWindow(ProjectManagementViewModel vm)
|
||||
{
|
||||
InitializeComponent();
|
||||
_vm = vm;
|
||||
DataContext = vm;
|
||||
}
|
||||
|
||||
private void BrowseEngineering_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var dialog = new OpenFolderDialog
|
||||
{
|
||||
Title = "Engineering-Quellpfad wählen",
|
||||
InitialDirectory = _vm.EditEngineeringPath
|
||||
};
|
||||
if (dialog.ShowDialog() == true)
|
||||
_vm.EditEngineeringPath = dialog.FolderName;
|
||||
}
|
||||
|
||||
private void BrowseSimulation_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var dialog = new OpenFolderDialog
|
||||
{
|
||||
Title = "Simulations-Zielpfad wählen",
|
||||
InitialDirectory = _vm.EditSimulationPath
|
||||
};
|
||||
if (dialog.ShowDialog() == true)
|
||||
_vm.EditSimulationPath = dialog.FolderName;
|
||||
}
|
||||
|
||||
private void BrowseBackup_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var dlg = new OpenFolderDialog
|
||||
{
|
||||
Title = "Backup-Verzeichnis wählen",
|
||||
InitialDirectory = string.IsNullOrEmpty(_vm.EditBackupCustomPath)
|
||||
? null
|
||||
: _vm.EditBackupCustomPath
|
||||
};
|
||||
if (dlg.ShowDialog() == true)
|
||||
_vm.EditBackupCustomPath = dlg.FolderName;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user