stackoverflow怎么搜索问题
答案:2 悬赏:30 手机版
解决时间 2021-03-01 09:55
- 提问者网友:那叫心脏的地方装的都是你
- 2021-02-28 19:31
stackoverflow怎么搜索问题
最佳答案
- 五星知识达人网友:患得患失的劫
- 2021-02-28 20:44
private void button1_Click(object sender, System.EventArgs e)
public override void Display(int depth)
{
Console.WriteLine(new string('-', depth) + name);
foreach (Component component in children)
{
component.Display(depth + 2);
}
}
public override void Display(int depth)
{
Console.WriteLine(new string('-', depth) + name);
foreach (Component component in children)
{
component.Display(depth + 2);
}
}
全部回答
- 1楼网友:杯酒困英雄
- 2021-02-28 21:47
printpreviewdialog1.printpreviewcontrol.startpage = 0;
class composite : component
{
private list children = new list();
public composite(string name) : base(name) { }
public override void add(component c)
{
children.add(c);
}
public override void remove(component c)
{
children.remove(c);
}
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯