Multi-Platform Package Manager for Stable Diffusion
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

34 lines
969 B

using System.Collections.ObjectModel;
namespace StabilityMatrix.Core.Models;
public class LaunchOptionCard
{
public string Title { get; set; }
public LaunchOptionType Type { get; set; }
public string? Description { get; set; }
public ObservableCollection<LaunchOption> Options { get; set; } = new();
public LaunchOptionCard(string title, LaunchOptionType type = LaunchOptionType.Bool)
{
Title = title;
Type = type;
}
public LaunchOptionCard(LaunchOptionDefinition definition)
{
Title = definition.Name;
Description = definition.Description;
Type = definition.Type;
foreach (var optionName in definition.Options)
{
var option = new LaunchOption
{
Name = optionName,
Type = definition.Type,
DefaultValue = definition.DefaultValue
};
Options.Add(option);
}
}
}