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.
 
 
 

28 lines
813 B

using System.Collections.Generic;
using System.Windows;
using StabilityMatrix.Models;
using StabilityMatrix.ViewModels;
using Wpf.Ui.Contracts;
using Wpf.Ui.Controls.ContentDialogControl;
namespace StabilityMatrix;
public partial class LaunchOptionsDialog : ContentDialog
{
private readonly LaunchOptionsDialogViewModel viewModel;
public List<LaunchOption> AsLaunchArgs() => viewModel.AsLaunchArgs();
public LaunchOptionsDialog(IContentDialogService dialogService, LaunchOptionsDialogViewModel viewModel) : base(
dialogService.GetContentPresenter())
{
this.viewModel = viewModel;
InitializeComponent();
DataContext = viewModel;
}
private void LaunchOptionsDialog_OnLoaded(object sender, RoutedEventArgs e)
{
viewModel.OnLoad();
}
}