void LoadNvtSection(DeviceViewArgs args, bool isActive) { SourceSectionPanel spanel = new SourceSectionPanel(args, container); spanel.Init(isActive, null, () => { sections.ForEach(sp => { if (sp != spanel) { sp.Hide(); } }); }); sections.Add(spanel); spanel.header.Content = "NVT"; onvifEntitiesPanel.Children.Add(spanel); spanel.CreateView(args, container); }
void LoadNvtSection(DeviceViewArgs args, bool isActive) { SourceSectionPanel spanel = new SourceSectionPanel(args, container); spanel.Init(isActive, null, () => { sections.ForEach(sp => { if (sp != spanel) sp.Hide(); }); }); sections.Add(spanel); spanel.header.Content = "NVT"; onvifEntitiesPanel.Children.Add(spanel); spanel.CreateView(args, container); }