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

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

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

