using System.Windows;
using MainShell.Recipe.ViewModel;

namespace MainShell.Recipe.View
{
    public partial class MarkCoordinatePreviewWindow : Window
    {
        public MarkCoordinatePreviewWindow()
        {
            InitializeComponent();
        }

        protected override void OnClosed(System.EventArgs e)
        {
            if (DataContext is MarkCoordinatePreviewWindowModel viewModel)
            {
                viewModel.Cleanup();
            }

            base.OnClosed(e);
        }
    }
}
