mirror of
https://github.com/hawkeye-stan/msfs-popout-panel-manager.git
synced 2024-11-28 16:50:11 +00:00
27 lines
791 B
C#
27 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; } }
|
|||
|
}
|
|||
|
}
|