public OnlineOfflineLegend( CurveDisplay curveDisplay, string description1Header = "Desc. 1", string description2Header = "Desc. 2", string description3Header = "Desc. 3", string description4Header = "Desc. 4", string description5Header = "Desc. 5") { _curveDisplay = curveDisplay; InitializeComponent(); _tableLegend = new TableLegend( curveDisplay, description1Header, description2Header, description3Header, description4Header, description5Header); offlineLegendHolder.Content = _tableLegend; _tileLegend = new TileLegend(curveDisplay); onlineLegendHolder.Content = _tileLegend; _curveDisplay.TimeDoublePlottingSystem.IsOnlineChanged += (s, e) => UpdateOnlineState(); UpdateOnlineState(); }
public CurveControlSurface(CurveDisplay curveDisplay) { _left = curveDisplay.LeftPlaceholder; _right = curveDisplay.RightPlaceholder; _top = curveDisplay.TopPlaceholder; _bottom = curveDisplay.BottomPlaceholder; _centerFront = curveDisplay.CenterFrontPlaceholder; _centerBack = curveDisplay.CenterBackPlaceholder; _centerTopmost = curveDisplay.CenterTopmostPlaceholder; }