using System; using System.Collections.Generic; using StabilityMatrix.Avalonia.ViewModels; using StabilityMatrix.Core.Helper.Factory; using StabilityMatrix.Core.Models; using StabilityMatrix.Core.Models.Packages; using StabilityMatrix.Core.Services; namespace StabilityMatrix.Avalonia.DesignData; public static class DesignData { static DesignData() { var settingsManager = new SettingsManager { Settings = { InstalledPackages = new List { new() { DisplayName = "My Installed Package", PackageName = "stable-diffusion-webui", PackageVersion = "v1.0.0", LibraryPath = "Packages/sd-webui", LastUpdateCheck = DateTimeOffset.Now } }, ActiveInstalledPackage = new Guid() } }; var packages = new List { new A3WebUI(null!, settingsManager, null!, null!), new ComfyUI(null!, settingsManager, null!, null!) }; var packageFactory = new PackageFactory(packages); LaunchPageViewModel = new LaunchPageViewModel(settingsManager); PackageManagerViewModel = new PackageManagerViewModel(settingsManager, packageFactory); SettingsViewModel = new SettingsViewModel(); MainWindowViewModel = new MainWindowViewModel { Pages = new List { LaunchPageViewModel, PackageManagerViewModel, SettingsViewModel } }; } public static MainWindowViewModel MainWindowViewModel { get; } public static LaunchPageViewModel LaunchPageViewModel { get; } public static PackageManagerViewModel PackageManagerViewModel { get; } public static SettingsViewModel SettingsViewModel { get; } }