public SignaturePasswordView(IPasswordButtonViewModel viewModel)
        {
            DataContext = viewModel;
            _viewModel  = viewModel;
            InitializeComponent();

            _viewModel.PropertyChanged += (sender, args) =>
            {
                if (args.PropertyName == nameof(viewModel.Password))
                {
                    SignatureAccountPasswordBox.Password = _viewModel.Password;
                }
            };
        }
        public PasswordButtonController(ITranslationUpdater translationUpdater, IPasswordButtonViewModel buttonViewModel, bool allowSkip, bool allowRemove)
        {
            _buttonViewModel = buttonViewModel;
            _password        = "";

            PrintJobPasswordButtonViewModel = new PrintJobPasswordButtonViewModel(translationUpdater)
            {
                AllowSkip     = allowSkip,
                AllowRemove   = allowRemove,
                OkCommand     = new DelegateCommand(OkExecute, OkCanExecute),
                SkipCommand   = new DelegateCommand(SkipExecute),
                CancelCommand = new DelegateCommand(CancelExecute),
                RemoveCommand = new DelegateCommand(RemoveExecute)
            };
        }
 public SignaturePasswordView(IPasswordButtonViewModel viewModel)
 {
     DataContext = viewModel;
     InitializeComponent();
 }