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

namespace Valg.EVA.Skanning.JobManagement.Startup.UI.TransferOverview
{
    
    
    
    public partial class TransferDetailsPopupView : EvaWindow, IHelpContributor
    {
        public TransferDetailsPopupView()
        {
            InitializeComponent();
            DataContextChanged += TransferDetailsPopupView_DataContextChanged;
        }

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

        public string HelpContributionId
        {
            get { return HelpContributionIds.Overføring; }
        }
    }
}
