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