Schlüssel übersichtlich, Segmente neu sortiert PDFs eingeführt, Beispiel Ansicht eingeführt,
39 lines
943 B
C#
39 lines
943 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Dakota.Models
|
|
{
|
|
internal class Datenelementgruppe : Dateneinheit
|
|
{
|
|
public Datenelement[] Datenelemente { get; set; }
|
|
|
|
public Datenelementgruppe(string title, int count)
|
|
{
|
|
if (count < 2)
|
|
throw new ArgumentOutOfRangeException("#37493218741616891269821");
|
|
|
|
Title = title;
|
|
|
|
Datenelemente = new Datenelement[count];
|
|
}
|
|
|
|
public void SetValue(int loc, string val)
|
|
{
|
|
Datenelemente[loc].SetValue(val);
|
|
}
|
|
|
|
public string GetValue(int loc)
|
|
{
|
|
return Datenelemente[loc].GetValue();
|
|
}
|
|
|
|
public override string GetValue()
|
|
{
|
|
return string.Join(DakotaConfig.TrennzeichenInnerhalb, Datenelemente.Select(x => x.GetValue()));
|
|
}
|
|
}
|
|
}
|