- Gestito salvataggio e chiusura componente con salvataggio jwd
- Correzioni valori nulli - Aggiunta funzione per calcolare altezza sashGroup
This commit is contained in:
@@ -302,9 +302,13 @@ namespace WebWindowComplex.Compo
|
||||
// Rimuovo riempimento da anta selezionata
|
||||
sashSplitted.AreaList.RemoveAt(0);
|
||||
// Creo la copia dell'anta scelta
|
||||
Area a = CurrSashGroup.AreaList[IndexCopy].AreaList.First().Copy(sashSplitted);
|
||||
// Aggiungo copia all'anta selezionata
|
||||
CurrSashGroup.AreaList[IndexModify].AreaList.Add(a);
|
||||
Area a;
|
||||
if (CurrSashGroup.AreaList[IndexCopy].AreaList.FirstOrDefault() != null)
|
||||
{
|
||||
a = CurrSashGroup.AreaList[IndexCopy].AreaList.FirstOrDefault()!.Copy(sashSplitted);
|
||||
// Aggiungo copia all'anta selezionata
|
||||
CurrSashGroup.AreaList[IndexModify].AreaList.Add(a);
|
||||
}
|
||||
DataUpdateProfile args = new DataUpdateProfile()
|
||||
{
|
||||
sash = CurrSashGroup,
|
||||
|
||||
@@ -106,7 +106,10 @@ namespace WebWindowComplex.Compo
|
||||
{
|
||||
if (CurrFrameWindow.SelThresholdFromType != value)
|
||||
{
|
||||
string valueName = CurrFrameWindow.ThresholdList.Where(x => x.Type.Equals(value)).First().Name;
|
||||
Threshold? threshold = CurrFrameWindow.ThresholdList.Where(x => x.Type.Equals(value)).FirstOrDefault();
|
||||
string valueName = "";
|
||||
if (threshold != null)
|
||||
valueName = threshold.Name;
|
||||
if (SashList.Count > 0 || (SashList.Count == 0 && !valueName.Equals("Threshold")))
|
||||
{
|
||||
CurrFrameWindow.SelThresholdFromType = value;
|
||||
|
||||
@@ -263,9 +263,13 @@ namespace WebWindowComplex.Compo
|
||||
//isOpen = !isOpen;
|
||||
for (int i = 0; i < CurrSashGroup.SashList.Count; i++)
|
||||
{
|
||||
CurrSashGroup.SashList.ElementAt(i).SetSelMeasureType(type, i);
|
||||
CurrSashGroup.SashList.ElementAt(i).SelMeasureTypeIndex = (int)type;
|
||||
}
|
||||
var args = new DataUpdateSash { currSash = CurrSashGroup, noSvg = true };
|
||||
var args = new DataUpdateSash
|
||||
{
|
||||
currSash = CurrSashGroup,
|
||||
noSvg = true
|
||||
};
|
||||
return EC_UpdateSashGroup.InvokeAsync(args);
|
||||
}
|
||||
|
||||
|
||||
@@ -340,11 +340,13 @@ namespace WebWindowComplex.Compo
|
||||
isOpen = !isOpen;
|
||||
foreach (var item in CurrSplit.SplitVertList)
|
||||
{
|
||||
item.SetSelMeasureType(type);
|
||||
item.SelMeasureTypeIndex = (int)type;
|
||||
//item.SetSelMeasureType(type);
|
||||
}
|
||||
foreach (var item in CurrSplit.SplitHorizList)
|
||||
{
|
||||
item.SetSelMeasureType(type);
|
||||
item.SelMeasureTypeIndex = (int)type;
|
||||
//item.SetSelMeasureType(type);
|
||||
}
|
||||
var args = new DataUpdateSplit()
|
||||
{
|
||||
|
||||
@@ -231,7 +231,11 @@ namespace WebWindowComplex.Compo
|
||||
continue;
|
||||
}
|
||||
if(itemSameCol.Count > 0)
|
||||
return RowCollapsedDict.GetValueOrDefault(itemSameCol.First().Row - 1);
|
||||
{
|
||||
ItemTable? firstItem = itemSameCol.FirstOrDefault();
|
||||
if (firstItem != null)
|
||||
return RowCollapsedDict.GetValueOrDefault(firstItem.Row - 1);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user