using System.Windows;
using Valg.EVA.Skanning.UserInterfaceElements;
using Valg.EVA.Skanning.UserInterfaceElements.Help;

namespace Valg.EVA.Skanning.JobManagement.Startup.UI.Counting
{
    
    
    
    public partial class ClearBoxPopupView : EvaWindow, IHelpContributor
    {
        public ClearBoxPopupView()
            : base()
        {
            InitializeComponent();
            DataContextChanged += ClearBoxPopupView_DataContextChanged;
        }

        private void ClearBoxPopupView_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            var viewModel = DataContext as ClearBoxPopupViewModel;
            if (viewModel != null)
            {
                viewModel.CloseWindowAction = (Close);
            }
        }

        public string HelpContributionId { get { return HelpContributionIds.SlettKasse; } }
    }
}
