Example #1
0
        public XDragPlanVM(XDragKitVM dragKit)
        {
            if (dragKit == null)
                throw new ArgumentNullException("Параметр dragKit не может быть null");

            _dragPlan = new XDragPlan();

            _dragKit = dragKit;
            _dragPlan.DragKit = dragKit.DragKit;
            Date = DateTime.Now;
        }
Example #2
0
        public XDragPlanVM(XDragPlan dragPlan)
        {
            if (dragPlan == null)
                throw new ArgumentNullException("Параметр draglan не может быть null");
            _dragPlan = dragPlan;

            if (dragPlan.DragKit == null)
                dragPlan.DragKit = new XDragKit();

               _dragKit = new XDragKitVM(dragPlan.DragKit);
        }
Example #3
0
 /// <summary>
 /// Создает новый Набор лекарств и добавляет в коллекцию
 /// </summary>
 private void CreateNewDragKit()
 {
     NewDragKit = new XDragKitVM();
     this._dragKitObsCollection.Add(NewDragKit);
 }