Beispiel #1
0
        public virtual void AddItem(Fitting fitting, PriceСurrency currency, decimal cost = 0)
        {
            var item = new PriceItem {
                Price    = this,
                Fitting  = fitting,
                Currency = currency,
                Cost     = cost
            };

            ObservablePrices.Add(item);
        }
Beispiel #2
0
        public virtual void AddItem(Fitting fitting)
        {
            int seq = 1;

            if (ProjectRows.Count > 0)
            {
                seq = ProjectRows.Max(x => x.SequenceNumber) + 1;
            }
            var item = new ProjectItem {
                Project        = this,
                Fitting        = fitting,
                SequenceNumber = seq
            };

            ObservableProjectRows.Add(item);
        }