Corretti alcuni Warnings
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
@if (User)
|
||||
{
|
||||
<span class="input-group-text">Tipology</span>
|
||||
<input type="text" readonly class="form-control" value="@(CurrFrameWindow.ThresholdList.FirstOrDefault(x => x.Type == SelThreshold).Name)">
|
||||
<input type="text" readonly class="form-control" value="@(CurrFrameWindow.ThresholdList.FirstOrDefault(x => x.Type == SelThreshold)?.Name)">
|
||||
|
||||
}
|
||||
else
|
||||
|
||||
@@ -195,7 +195,7 @@ namespace WebWindowComplex.Compo
|
||||
protected async Task RemoveArea()
|
||||
{
|
||||
CurrSashGroup.Remove();
|
||||
FrameWindow.SetSelThresholdFromName(FrameWindow.ThresholdList.FirstOrDefault(x => x.Name != "Threshold").Name);
|
||||
FrameWindow.SetSelThresholdFromName(FrameWindow.ThresholdList.FirstOrDefault(x => x.Name != "Threshold")?.Name);
|
||||
var args = new DataUpdateFrame()
|
||||
{
|
||||
currFrame = FrameWindow
|
||||
|
||||
@@ -204,7 +204,7 @@ namespace WebWindowComplex.Compo
|
||||
protected async Task UpdateDimension(DataUpdateSplitDimension updRec)
|
||||
{
|
||||
SplitDimension currSplitDim = updRec.currSplit;
|
||||
SplitDimension currRec = null;
|
||||
SplitDimension currRec = new SplitDimension(0, MeasureTypes.NULL, false, updRec.currSplit.Parent, false);
|
||||
// cerco il record
|
||||
if (currSplitDim.bIsVertListDim)
|
||||
currRec = CurrSplit.SplitVertList.ElementAt(updRec.index);
|
||||
@@ -233,7 +233,7 @@ namespace WebWindowComplex.Compo
|
||||
{
|
||||
foreach (Split s in SplitList)
|
||||
{
|
||||
if (s.Equals(CurrSplit))
|
||||
if (s.Equals(CurrSplit) && e.Value != null)
|
||||
{
|
||||
s.SetSplitStartVert((bool)e.Value);
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace WebWindowComplex.Compo
|
||||
if (CurrRec.ParentArea is Frame)
|
||||
nElement = ((Frame)CurrRec.ParentArea).ElementDimensionList.Count;
|
||||
else if(CurrRec.ParentArea is Sash)
|
||||
nElement = ((Sash)CurrRec.ParentArea).SashList.FirstOrDefault().ElementDimensionList.Count;
|
||||
nElement = ((Sash)CurrRec.ParentArea).SashList.FirstOrDefault()!.ElementDimensionList.Count;
|
||||
switch (nElement)
|
||||
{
|
||||
case 4:
|
||||
|
||||
@@ -34,9 +34,9 @@ namespace WebWindowComplex.Compo
|
||||
get => CurrOpt.sValue.sValue;
|
||||
set
|
||||
{
|
||||
if (CurrOpt.sValue.sValue != value)
|
||||
if (CurrOpt.sValue.sValue != value && CurrOpt.ValueList.FirstOrDefault(x => x.sValue == value) != null)
|
||||
{
|
||||
CurrOpt.sValue = CurrOpt.ValueList.FirstOrDefault(x => x.sValue == value);
|
||||
CurrOpt.sValue = CurrOpt.ValueList.FirstOrDefault(x => x.sValue == value)!;
|
||||
_ = EC_Update.InvokeAsync(CurrOpt);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,8 +38,8 @@ namespace WebWindowComplex.Compo
|
||||
{
|
||||
if(CurrOpt.sName.Equals("HMan"))
|
||||
CurrOpt.sValue = value;
|
||||
else
|
||||
CurrOpt.sValue = CurrOpt.ValueList.FirstOrDefault(x => x == value);
|
||||
else if (CurrOpt.ValueList.FirstOrDefault(x => x == value) != null)
|
||||
CurrOpt.sValue = CurrOpt.ValueList.FirstOrDefault(x => x == value)!;
|
||||
_ = EC_Update.InvokeAsync(CurrOpt);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user