void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mb = ((ScriptPlugin.Theme.Control.InputBoxPassword)(target));
                return;

            case 2:
                this.InputTextBox = ((System.Windows.Controls.PasswordBox)(target));

            #line 19 "..\..\..\Control\InputBoxPassword.xaml"
                this.InputTextBox.KeyDown += new System.Windows.Input.KeyEventHandler(this.InputTextBox_OnKeyDown);

            #line default
            #line hidden
                return;

            case 3:
                this.btnOK = ((ScriptPlugin.Theme.Control.FButton)(target));
                return;

            case 4:
                this.btnCancel = ((ScriptPlugin.Theme.Control.FButton)(target));
                return;
            }
            this._contentLoaded = true;
        }
        public static Tuple <bool, string> Show(string questionText, string title)
        {
            var res  = true;
            var pass = "";

            Application.Current.Dispatcher.Invoke(new Action(() =>
            {
                InputBoxPassword nb = new InputBoxPassword
                {
                    Title        = title,
                    QuestionText = questionText,
                    Owner        = ControlHelper.GetTopWindow()
                };
                nb.ShowDialog();
                pass = nb.InputTextBox.Password;
                res  = nb.Result;
            }));
            return(new Tuple <bool, string>(res, pass));
        }