1fc7792cd1
Rename ConfigManager to ConfigManager.Ui to match the Core/CLI/UI project structure, and split the monolithic test project into Core.Tests, Cli.Tests, and Ui.Tests to align with the source project organization.
26 lines
779 B
C#
26 lines
779 B
C#
using Avalonia.Controls;
|
|
using JdeScoping.ConfigManager.Ui.ViewModels.Dialogs;
|
|
|
|
namespace JdeScoping.ConfigManager.Ui.Views.Dialogs;
|
|
|
|
public partial class DiffPreviewDialog : Window
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="DiffPreviewDialog"/> class.
|
|
/// </summary>
|
|
public DiffPreviewDialog()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="DiffPreviewDialog"/> class with a view model.
|
|
/// </summary>
|
|
/// <param name="viewModel">The view model to bind to the dialog.</param>
|
|
public DiffPreviewDialog(DiffPreviewDialogViewModel viewModel) : this()
|
|
{
|
|
DataContext = viewModel;
|
|
viewModel.RequestClose = Close;
|
|
}
|
|
}
|