diff --git a/MP.MONO.UI/Components/ParamOverview.razor b/MP.MONO.UI/Components/ParamOverview.razor
index f7a754c..596d6fc 100644
--- a/MP.MONO.UI/Components/ParamOverview.razor
+++ b/MP.MONO.UI/Components/ParamOverview.razor
@@ -41,8 +41,6 @@
}
-
-
}
else
{
diff --git a/MP.MONO.UI/Components/ParamOverview.razor.cs b/MP.MONO.UI/Components/ParamOverview.razor.cs
index e3ef531..a9ecdac 100644
--- a/MP.MONO.UI/Components/ParamOverview.razor.cs
+++ b/MP.MONO.UI/Components/ParamOverview.razor.cs
@@ -15,7 +15,8 @@ namespace MP.MONO.UI.Components
#region Private Methods
- private string SelVal = "";
+ [Parameter]
+ public string SelVal { get; set; } = "";
diff --git a/MP.MONO.UI/Components/ParamPlot.razor b/MP.MONO.UI/Components/ParamPlot.razor
index d26a4d1..f17c2a2 100644
--- a/MP.MONO.UI/Components/ParamPlot.razor
+++ b/MP.MONO.UI/Components/ParamPlot.razor
@@ -7,43 +7,46 @@
@inject CurrentDataService MMDataService
-
-
- @SelectedParam
-
-
-
-
-
- @if (LevelVal == null || LevelVal.Count == 0)
- {
-
- }
- else
- {
-
- }
-
-
+}
diff --git a/MP.MONO.UI/Components/ParamPlot.razor.cs b/MP.MONO.UI/Components/ParamPlot.razor.cs
index adc33c1..3051011 100644
--- a/MP.MONO.UI/Components/ParamPlot.razor.cs
+++ b/MP.MONO.UI/Components/ParamPlot.razor.cs
@@ -18,26 +18,31 @@ namespace MP.MONO.UI.Components
protected DateTime lastRec = DateTime.Now.AddMinutes(-1);
+ protected Dictionary
listMaxVal = new Dictionary();
+ protected Dictionary listMinVal = new Dictionary();
protected Dictionary> plotData = new Dictionary>();
- protected List LevelVal
- {
- get => plotData[SelectedParam] ?? new List();
- }
protected double sampleSecMin = 1;
#endregion Protected Fields
- #region Private Properties
-
- private List? ListRecords { get; set; } = null;
-
- #endregion Private Properties
-
#region Protected Properties
protected string _selParam { get; set; } = "";
+ protected List LevelVal
+ {
+ get
+ {
+ List answ = new List();
+ if (plotData.ContainsKey(SelectedParam))
+ {
+ answ = plotData[SelectedParam];
+ }
+ return answ;
+ }
+ }
+
protected string? MaxVal
{
get => listMaxVal[SelectedParam] ?? "0";
@@ -48,10 +53,6 @@ namespace MP.MONO.UI.Components
get => listMinVal[SelectedParam] ?? "0";
}
- protected Dictionary listMinVal = new Dictionary();
- protected Dictionary listMaxVal = new Dictionary();
-
-
#endregion Protected Properties
#region Public Properties
diff --git a/MP.MONO.UI/Pages/Parameters.razor b/MP.MONO.UI/Pages/Parameters.razor
index 2288553..3c0afaa 100644
--- a/MP.MONO.UI/Pages/Parameters.razor
+++ b/MP.MONO.UI/Pages/Parameters.razor
@@ -1,7 +1,5 @@
@page "/Parameters"
-
-