72 lines
1.7 KiB
C#
72 lines
1.7 KiB
C#
// Copyright (c) 2015-2017 schick Informatik
|
|
// Description: Abstraktion für Report / Druckerzeugung..
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace bsmd.database
|
|
{
|
|
/// <summary>
|
|
/// Interface to print nsw messages to a report (get text info from messages)
|
|
/// </summary>
|
|
public interface IMessageParagraph
|
|
{
|
|
|
|
string Title { get; }
|
|
|
|
string Subtitle { get; }
|
|
|
|
bool ShowChildrenAsTable { get; }
|
|
|
|
List<KeyValuePair<string, string>> MessageText { get; }
|
|
|
|
List<IMessageParagraph> ChildParagraphs { get; }
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// Dummy Container class implementation for sublist display purposes
|
|
/// </summary>
|
|
public class MessageParagraph : IMessageParagraph
|
|
{
|
|
private readonly List<IMessageParagraph> childParagraphs = new List<IMessageParagraph>();
|
|
private readonly List<KeyValuePair<string, string>> messageText = new List<KeyValuePair<string, string>>();
|
|
|
|
public List<IMessageParagraph> ChildParagraphs
|
|
{
|
|
get
|
|
{
|
|
return childParagraphs;
|
|
}
|
|
}
|
|
|
|
public List<KeyValuePair<string, string>> MessageText
|
|
{
|
|
get
|
|
{
|
|
return messageText;
|
|
}
|
|
}
|
|
|
|
public bool ShowChildrenAsTable
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public string Subtitle
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public string Title
|
|
{
|
|
get; set;
|
|
}
|
|
}
|
|
|
|
|
|
}
|