Пример #1
0
        public virtual RegulationDocAnnex AddAnnex()
        {
            var annex = new RegulationDocAnnex();

            annex.Document = this;
            if (Annexess.Count == 0)
            {
                annex.Number = 1;
            }
            else
            {
                annex.Number = Annexess.Max(x => x.Number) + 1;
            }

            ObservableAnnexes.Add(annex);
            return(annex);
        }
Пример #2
0
 public virtual void RemoveAnnex(RegulationDocAnnex annex)
 {
     ObservableAnnexes.Remove(annex);
 }