用jscriptnet?
Form formPreview = new Form();public Leaf(string name) : base(name) { } public override void Add(Component c) { Console.WriteLine("Cannot add to a leaf"); } public override void Remove(Component c) { Console.WriteLine("Cannot remove to a leaf"); } public override void Display(int depth) { Console.WriteLine(new string('-',depth)+name); } }
Copyright © 广州京杭网络科技有限公司 2005-2024 版权所有 粤ICP备16019765号
广州京杭网络科技有限公司 版权所有