public ValidateApplicationCaptchaWindow()
        {
            InitializeComponent();

            _vm = new ValidateApplicationCaptchaViewModel();
            _vm.ExitRequested += CloseApplicationAndReturnCaptach;

            this.DataContext = _vm;
        }
Ejemplo n.º 2
0
        public ValidateApplicationCaptchaWindow(bool openFromConsoleAppThread)
        {
            InitializeComponent();

            _vm = new ValidateApplicationCaptchaViewModel();

            if (openFromConsoleAppThread)
            {
                _vm.ExitRequested += CloseApplicationAndReturnCaptach;
            }
            else
            {
                _vm.ExitRequested += UpdateVerifierKey;
            }

            DataContext = _vm;
        }