Fix FormatElement labels if no content.
This commit is contained in:
@ -31,7 +31,17 @@ namespace zaaReloaded2.Controller.Elements
|
||||
{
|
||||
public override string Label
|
||||
{
|
||||
get { return String.Format("\"{0}\"", Content); }
|
||||
get
|
||||
{
|
||||
if (String.IsNullOrEmpty(Content))
|
||||
{
|
||||
return "Beliebiger Text";
|
||||
}
|
||||
else
|
||||
{
|
||||
return String.Format("\"{0}\"", Content);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void Run(Formatter.Formatter formatter)
|
||||
|
@ -38,7 +38,17 @@ namespace zaaReloaded2.Controller.Elements
|
||||
|
||||
public override string Label
|
||||
{
|
||||
get { return Content; }
|
||||
get
|
||||
{
|
||||
if (String.IsNullOrEmpty(Content))
|
||||
{
|
||||
return "Laborparameter";
|
||||
}
|
||||
else
|
||||
{
|
||||
return Content;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void Run(zaaReloaded2.Formatter.Formatter formatter)
|
||||
|
Reference in New Issue
Block a user