private void btn_ShowPumpCurve_Click(object sender, EventArgs e) { if (m_ChartView == null || !m_ChartView.Visible) { m_ChartView = new ChartView("Anzeige Pumpenkennlinie"); } m_ChartView.AddCurve(m_Controller.Pump.ModellName, m_Controller.Pump.GetPerformanceFlowValues(), m_Controller.Pump.GetPerformanceHeadValues()); m_ChartView.Show(); }
private void btn_ShowPumpCurve_Click(object sender, EventArgs e) { if (m_ChartView == null || !m_ChartView.Visible) { m_ChartView = new ChartView("Anzeige Pumpenkennlinie"); } int?rpm = null; var pumpName = m_Controller.Pump.ModellName; if (m_Controller.Pump.IsVarioPump) { rpm = tb_Rpm.Value; pumpName = pumpName + $" ({rpm} min^-1)"; var performanceRange = m_Controller.Pump.GetPerformanceRange(); m_ChartView.AddRange(m_Controller.Pump.ModellName, performanceRange.Item1, performanceRange.Item2); } m_ChartView.AddCurve(pumpName, m_Controller.Pump.GetPerformanceFlowValues(rpm), m_Controller.Pump.GetPerformanceHeadValues(rpm)); m_ChartView.Show(); }