Add range.Addvalue extension

This commit is contained in:
Sergey Chebotar 2022-02-08 16:19:49 +03:00
parent b954844de9
commit 81f3030373

View File

@ -27,6 +27,19 @@ namespace RehauSku
return cells.All(x => x != null); return cells.All(x => x != null);
} }
public static void AddValue(this Range range, double value)
{
if (range.Value2 == null)
{
range.Value2 = value;
}
else
{
range.Value2 += value;
}
}
} }
} }