refactor(configmanager): rename UI project and split test projects
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.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user