using Valg.EVA.Skanning.UserInterfaceElements;

namespace Valg.Eva.Skanning.Scan.Presentation.ScanInProgress
{
    public class ScanIsCanceledWindowViewModel : ViewModelBase
    {
        private bool isCloseButtonFocused;

        public string Title
        {
            get { return Valg.EVA.Skanning.Resources.Language.ScanLanguageString.ScanIsCanceledWindow_Title; }
        }

        public string Description
        {
            get { return Valg.EVA.Skanning.Resources.Language.ScanLanguageString.ScanIsCanceledWindow_Description; }
        }

        public string CloseButtonText
        {
            get { return Valg.EVA.Skanning.Resources.Language.ScanLanguageString.ScanIsCanceledWindow_CloseButtonText; }
        }

        public bool IsCloseButtonFocused
        {
            get { return isCloseButtonFocused; }
            set
            {
                isCloseButtonFocused = value;
                OnPropertyChanged();
            }
        }

        public void PrepareForShow()
        {
            DelayedFocusSetter.SetFocus(() => IsCloseButtonFocused = true);
        }
    }
}
