Example #1
0
 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;
 }
Example #2
0
 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));
     }
 }
Example #3
0
        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;
        }