Ejemplo n.º 1
0
        public EquipmentWnd(BaseCollection <EquipmentView> equipments, int?typeId = null, int?id = null)
            : this()
        {
            this.id         = id;
            this.equipments = equipments;
            this.typeId     = typeId;

            if (id.HasValue)
            {
                mainGrid.DataContext = equipments.ToList().Where(x => x.Id == id).First();
            }
        }