Create rudimentary view models, default settings.

This commit is contained in:
Daniel Kraus
2015-07-31 17:19:49 +02:00
parent a725246f27
commit 12cd58180f
21 changed files with 937 additions and 43 deletions

View File

@ -25,22 +25,16 @@ namespace zaaReloaded2.Controller.Elements
/// <summary>
/// Controller element that writes arbitrary text to the document.
/// </summary>
class CustomText : ElementBase
class CustomText : FormatElementBase
{
public override string Label
{
get { return String.Format("\"{0}\"", Text); }
get { return String.Format("\"{0}\"", Content); }
}
public override void Run(Formatter.Formatter formatter)
{
formatter.Write(Text);
formatter.WriteParagraph(Content);
}
/// <summary>
/// Gets or sets the arbitrary text that will be written
/// to the document.
/// </summary>
public string Text { get; set; }
}
}