private static double SmoothFlowCurve(RowValues rowValues) { if (rowValues.S10MeanValue <= 20) { return(HeatCurve.SolvisCurve(RowValues.Temperature, RowValues.Niveau, RowValues.Gradient, rowValues.S10MeanValue)); } else { return(20); } }
protected override int Execute(ActionData data) { try { HeatCurve dialog = HeatCurve.Instance; if (dialog.WindowState == FormWindowState.Minimized) { dialog.WindowState = HeatCurveHelper.LastWindowState; } if (!dialog.Visible) { dialog.Show(AppManager.MainForm); } } catch (Exception ex) { AppExtension.PrintStackTrace(ex); } return(0); }