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