public AssignVariable(VariableItem variableItem, IWizardHostService host, bool variableIsInputVariable)
            : base(variableItem)
        {
            InitializeComponent();

            txtVariabelValue.ContextBrowserButton = btnContextBrowse2;
            txtVariabelValue.PluginContext        = host.ServiceProvider;
            if (variableIsInputVariable)
            {
                txtVariabelValue.AddingFieldPart += new AddingPartHandler(addingFieldPart_CheckRead);
            }
            else
            {
                txtVariabelValue.AddingFieldPart += new AddingPartHandler(addingFieldPart_CheckWrite);
            }
        }
        protected override bool OnFinish(IWizardHostService host)
        {
            bool retVal = base.OnFinish(host);

            WizardPage firstPageWithError = WizardHelper.GetErrorPage(this.Host, this.Pages);

            if (firstPageWithError != null)
            {
                if (host.CurrentWizard.CurrentPage != firstPageWithError)
                {
                    host.CurrentWizard.CurrentPage = firstPageWithError;
                }

                retVal = false;
            }
            return(retVal);
        }
        public AssignVariable(VariableItem variableItem, IWizardHostService host, bool variableIsInputVariable)
            : base(variableItem)
        {

            InitializeComponent();

            txtVariabelValue.ContextBrowserButton = btnContextBrowse2;
            txtVariabelValue.PluginContext = host.ServiceProvider;
            if (variableIsInputVariable)
            {
                txtVariabelValue.AddingFieldPart += new AddingPartHandler(addingFieldPart_CheckRead);
            }
            else
            {
                txtVariabelValue.AddingFieldPart += new AddingPartHandler(addingFieldPart_CheckWrite);

            }

        }
        protected override bool OnFinish(IWizardHostService host)
        {
            bool retVal = base.OnFinish(host);

            WizardPage firstPageWithError = WizardHelper.GetErrorPage(this.Host, this.Pages);
            if (firstPageWithError != null)
            {
                if (host.CurrentWizard.CurrentPage != firstPageWithError)
                {
                    host.CurrentWizard.CurrentPage = firstPageWithError;
                }

                retVal = false;
            }
            return retVal;
        }