Exemplo n.º 1
0
        public override void InitializeBuilder(ChoPlugInBuilder builder)
        {
            base.InitializeBuilder(builder);

            ChoCSharpCodeSnippetPlugInBuilder b = builder as ChoCSharpCodeSnippetPlugInBuilder;

            b.CodeSnippet = new ChoCDATA(CodeSnippet);
            b.Arguments   = new ChoCDATA(Arguments);
            b.Namespaces  = Namespaces;
        }
        protected override void Clone(ChoPlugInBuilder o)
        {
            base.Clone(o);
            ChoCSharpCodeSnippetPlugInBuilder p = o as ChoCSharpCodeSnippetPlugInBuilder;

            if (p == null)
            {
                return;
            }

            p.CodeSnippet = CodeSnippet;
            p.Arguments   = Arguments;
            p.Namespaces  = Namespaces;
        }