public ItemVM(ItemData id, Bibel trans, Action <ItemVM, bool> checkedHandler, Func <ItemVM, bool> getChecked) : this() { this.Ref = id.Ref; this.Text = id.Ref; Translation = trans; CheckedHandler = checkedHandler; GetChecked = getChecked; }
public EntryVM(EntryData ed, Bibel trans, int no, Action <ItemVM, bool> checkedHandler, Func <ItemVM, bool> getChecked) { Text = $"Tag {no+1}"; foreach (var id in ed.Items) { Items.Add(new ItemVM(id, trans, checkedHandler, getChecked)); } }
void AssignData(DateTime actDate) { Entries.Clear(); var dt = UserData.StartDate; int day = 0; Bibel b = _Optionen.Data.GetFromShort(UserData.Translation); foreach (var lpde in _LeseplanData.Entries) { Entries.Add(new EntryVM(lpde, b, day, ItemVMCheckedChanged, GetChecked) { Date = dt.AddDays(day) }); day++; } Date = actDate.Date; }