Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit ab8aaba9 authored by Harald MARTINI's avatar Harald MARTINI
Browse files

Updated UpdateEditingEnabled Method for Nullable Parameters

parent 02434757
No related branches found
No related tags found
No related merge requests found
......@@ -409,10 +409,15 @@ namespace VECTO3GUI2020.ViewModel.MultiStage.Implementation
/// <returns></returns>
public bool UpdateEditingEnabled()
{
if (!AllowNullValue && CurrentContent == null) {
EditingEnabled = false;
} else {
EditingEnabled = true;
if (!AllowNullValue) {
if (CurrentContent == null)
{
EditingEnabled = false;
}
else
{
EditingEnabled = true;
}
}
return EditingEnabled;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment