void GenerateSimulationUI() { deviceStack.Children.Clear(); RepresentativeDevice = null; if (Simulation != null) { Timeline = new DebugTimeWindow() { StartTime = Simulation.SavedPreSimulationTime, EndTime = Simulation.CurrentTime }; foreach (var device in Simulation.SimulationNodes) { DebugDevice dev = new DebugDevice(); dev.BindNode(Timeline, device.Node); dev.FocusEventChange += Dev_FocusEventChange; RepresentativeDevice = dev; deviceStack.Children.Add(dev); } } }
private void Dev_FocusEventChange(DebugDevice dev) { popup.SetElement(dev, dev.FocusEvent); }
internal void SetElement(DebugDevice dev, DebugDevice.TimeWindow?w) { RenderDevice = dev; RenderWindow = w; InvalidateVisual(); }