using System.Windows;
using MainShell.Common.ViewModel;

namespace MainShell.Common.View
{
    public partial class MwMessageBoxWindow : Window
    {
        public MwMessageBoxWindow(MwMessageBoxWindowViewModel viewModel)
        {
            InitializeComponent();
            DataContext = viewModel ?? throw new System.ArgumentNullException(nameof(viewModel));
            CloseButton.Content = "\u00D7";
        }

        private void OnCloseButtonClick(object sender, System.Windows.RoutedEventArgs e)
        {
            this.Close();
        }
    }
}