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