1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-25 07:10:10 +00:00
msfs-popout-panel-manager/MainApp/UserControl/Dialog/AddProfileDialog.xaml.cs
2023-07-12 18:47:24 -04:00

26 lines
791 B
C#

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; } }
}
}