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 DeleteCountingPopupView : EvaWindow, IHelpContributor
    {
        public DeleteCountingPopupView()
        {
            InitializeComponent();
            DataContextChanged += DeleteCountingPopupView_DataContextChanged;
        }

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

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