using System.Windows;
using SharepointToolbox.ViewModels;

namespace SharepointToolbox.Views.Dialogs;

public partial class ProfileManagementDialog : Window
{
    public ProfileManagementDialog(ProfileManagementViewModel viewModel)
    {
        InitializeComponent();
        DataContext = viewModel;
        Loaded += async (_, _) => await viewModel.LoadAsync();
    }

    private void CloseButton_Click(object sender, RoutedEventArgs e)
    {
        Close();
    }
}
