Пример #1
0
 public OrderDetails(OrderSpareParts details, TSSEntities entities)
 {
     InitializeComponent();
     _WorkMode          = WorkWithEntityMode.Change;
     this._OrderDetails = details;
     this.DataContext   = _OrderDetails;
     this._ContentControl_SparePart.Content = _OrderDetails.SparePart;
     this._TSS = entities;
 }
Пример #2
0
 public OrderDetails(TSSEntities entities)
 {
     InitializeComponent();
     _WorkMode            = WorkWithEntityMode.Adding;
     _OrderDetails        = new OrderSpareParts();
     _OrderDetails.Number = 1;
     _OrderDetails.Own    = true;
     this.DataContext     = _OrderDetails;
     this._TSS            = entities;
 }