24 lines
588 B
C#
24 lines
588 B
C#
using System.ComponentModel;
|
|
using System.Windows;
|
|
using HC_APTBS.ViewModels;
|
|
|
|
namespace HC_APTBS;
|
|
|
|
/// <summary>
|
|
/// Code-behind for MainWindow — minimal: sets DataContext and forwards the
|
|
/// Closing event to a ViewModel command if needed.
|
|
/// </summary>
|
|
public partial class MainWindow : Window
|
|
{
|
|
public MainWindow(MainViewModel viewModel)
|
|
{
|
|
InitializeComponent();
|
|
DataContext = viewModel;
|
|
}
|
|
|
|
private void OnWindowClosing(object sender, CancelEventArgs e)
|
|
{
|
|
// Allow the window to close; services are disposed by the DI container.
|
|
}
|
|
}
|