initial commit
This commit is contained in:
23
MainWindow.xaml.cs
Normal file
23
MainWindow.xaml.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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.
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user