private bool IsAcolyteAnOlderAcolyte(AcolyteModel acolyte, bool hasAlreadyOlderSiblings)
        {
            var timeSinceEntry = DateTime.Today - (acolyte.Entry ?? DateTime.MinValue);

            return(timeSinceEntry.TotalDays > 365 * (hasAlreadyOlderSiblings ? 2 : 4));
        }
 private void AddNewAcolyte()
 {
     this.AllAcolytes.Add(new AcolyteViewModel(AcolyteModel.CreateNewAcolyte()));
     Workspace.RegisterDataChanged();
     SelectedIndex = this.AllAcolytes.Count - 1;
 }
Esempio n. 3
0
 public AcolyteViewModel(AcolyteModel storageAcolyte)
 {
     this.storageAcolyte   = storageAcolyte;
     this.PropertyChanged += AcolyteViewModel_PropertyChanged;
 }