Example #1
0
        protected override Variable Evaluate(ParsingScript script)
        {
            List <Variable> args = script.GetFunctionArgs();

            Utils.CheckArgs(args.Count, 1, m_name);

            string      varName = Utils.GetSafeString(args, 0);
            ImageEditor editor  = Utils.GetVariable(varName, script) as ImageEditor;

            Utils.CheckNotNull(editor, m_name, script);

            string initArg = Utils.GetSafeString(args, 1);

            editor.Start(initArg);

            return(editor);
        }
Example #2
0
        public override Variable Clone()
        {
            ImageEditor newVar = (ImageEditor)this.MemberwiseClone();

            return(newVar);
        }