public override void GeneratePanel() { canvas.Children.Clear(); canvas.Background = new SolidColorBrush(panelSettings.BackgroundColor); barGauge = new BarGauge(panelSettings) { Width = canvas.Width, Height = canvas.Height, pid = panelSettings.pid, showGraph = panelSettings.showGraph, showName = panelSettings.showName, showAbbreviation = panelSettings.showAbbreviation, showSpot = panelSettings.showSpot, showUnit = panelSettings.showUnit, showValue = panelSettings.showValue }; canvas.Children.Add(barGauge); barGauge.Draw(); }
private void AddGaugeCanvas(ushort pid) { var gaugeCanvas = new BarGauge(panelSettings) { Width = canvas.Width, Height = canvas.Height, pid = pid, showGraph = panelSettings.showGraph, showName = panelSettings.showName, showAbbreviation = panelSettings.showAbbreviation, showSpot = panelSettings.showSpot, showUnit = panelSettings.showUnit, showValue = panelSettings.showValue }; SimpleGaugeSlider.Add(gaugeCanvas); canvas.Children.Add(gaugeCanvas); gaugeCanvas.Draw(); gaugeCanvas.Hide(); }