Пример #1
0
        protected override bool ApplyPropertyValues(ChoPlugInBuilderProperty plugInBuilderProperty, string propertyName)
        {
            if (plugInBuilderProperty == null)
            {
                return(false);
            }
            base.ApplyPropertyValues(plugInBuilderProperty, propertyName);

            ChoVBScriptFilePlugInBuilderProperty o = plugInBuilderProperty as ChoVBScriptFilePlugInBuilderProperty;

            if (o == null)
            {
                return(false);
            }

            if (propertyName == "ScriptFilePath")
            {
                ScriptFilePath = o.ScriptFilePath;
            }
            else if (propertyName == "Arguments")
            {
                Arguments = new ChoCDATA(o.Arguments);
            }
            else if (propertyName == "WorkingDirectory")
            {
                WorkingDirectory = o.WorkingDirectory;
            }
            else
            {
                return(false);
            }

            return(true);
        }
Пример #2
0
        protected override void InitPlugInBuilderProperty(ChoPlugInBuilderProperty plugInBuilderProperty)
        {
            if (plugInBuilderProperty == null)
            {
                return;
            }

            base.InitPlugInBuilderProperty(plugInBuilderProperty);

            ChoVBScriptFilePlugInBuilderProperty o = plugInBuilderProperty as ChoVBScriptFilePlugInBuilderProperty;

            if (o == null)
            {
                return;
            }

            o.ScriptFilePath   = ScriptFilePath;
            o.Arguments        = Arguments.GetValue();
            o.WorkingDirectory = WorkingDirectory;
        }