1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-25 15:20:10 +00:00
msfs-popout-panel-manager/MainApp/UserControl/Dialog/AddProfileDialog.xaml.cs

27 lines
791 B
C#
Raw Normal View History

2023-07-12 22:41:31 +00:00
using MaterialDesignThemes.Wpf;
using Microsoft.Extensions.DependencyInjection;
using MSFSPopoutPanelManager.MainApp.ViewModel;
using System;
using System.Windows.Controls;
namespace MSFSPopoutPanelManager.MainApp
{
public partial class AddProfileDialog : UserControl
{
public AddProfileViewModel ViewModel { get; set; }
public AddProfileDialog()
{
ViewModel = App.AppHost.Services.GetRequiredService<AddProfileViewModel>();
InitializeComponent();
Loaded += (sender, e) =>
{
DataContext = ViewModel;
BtnAccept.IsEnabled = false;
};
}
public DialogClosingEventHandler ClosingEventHandler { get { return ViewModel.ClosingEventHandler; } }
}
}