我在Mongo中有这些数据:
{
"_id" : ObjectId("505fd43fdbed3dd93f0ae088"),
"categoryName" : "Cat 1",
"services" : [
{
"serviceName" : "Svc 1",
"input" : [
{ "quantity" : 10, "note" : "quantity = 10" },
{ "quantity" : 20, "note" : "quantity = 20" }
]
},
{
"serviceName" : "Svc 2",
"input" : [
{ "quantity" : 30, "note" : "quantity = 30" },
{ "quantity" : 40, "note" : "quantity = 40" }
]
}
]
}
Run Code Online (Sandbox Code Playgroud)
现在我想更新"Svc 1"的数量:
{ "quantity" : 10, …Run Code Online (Sandbox Code Playgroud) 我正在构建一个流程布局面板,其中每个控件代表一个房间.我想通过删除面板中的所有控件并添加新控件来重新加载所有空间.
我用了:
foreach(Control control in flowLayoutPanel.Controls)
{
flowLayoutPanel.Controls.Remove(control);
control.Dispose();
}
Run Code Online (Sandbox Code Playgroud)
但有些控件无法删除.
我试图在互联网上找到解决方案,但无处可寻.
身体有帮助吗?