using System.IO; using CommunityToolkit.Mvvm.ComponentModel; namespace EngineeringSync.Setup.ViewModels; /// /// Zentrales Datenmodell das durch alle Wizard-Schritte weitergereicht wird. /// public partial class WizardState : ObservableObject { // --- Installationspfad --- [ObservableProperty] private string _installPath = Path.Combine( Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "EngineeringSync"); // --- Erstes Projekt --- [ObservableProperty] private string _projectName = "Mein Projekt"; [ObservableProperty] private string _engineeringPath = string.Empty; [ObservableProperty] private string _simulationPath = string.Empty; [ObservableProperty] private bool _watchAllFiles = false; [ObservableProperty] private string _fileExtensions = ".jt,.cojt,.xml"; // --- Service-Optionen --- [ObservableProperty] private bool _autoStartService = true; [ObservableProperty] private bool _autoStartTrayApp = true; [ObservableProperty] private bool _startAfterInstall = true; [ObservableProperty] private bool _createDesktopShortcut = true; [ObservableProperty] private bool _createStartMenuEntry = true; // --- Backup-Einstellungen --- [ObservableProperty] private bool _backupEnabled = true; [ObservableProperty] private bool _backupUseCustomPath = false; [ObservableProperty] private string _backupCustomPath = string.Empty; [ObservableProperty] private int _maxBackupsPerFile = 0; }