Beispiel #1
0
        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);
                }
            }
        }
Beispiel #2
0
 private void Dev_FocusEventChange(DebugDevice dev)
 {
     popup.SetElement(dev, dev.FocusEvent);
 }
Beispiel #3
0
 internal void SetElement(DebugDevice dev, DebugDevice.TimeWindow?w)
 {
     RenderDevice = dev;
     RenderWindow = w;
     InvalidateVisual();
 }