Пример #1
0
 public void Save()
 {
     _isNew  = false;
     IsDirty = false;
     if (!SupplierList.Contains(SupplierId))
     {
         SupplierList.GetSupplierList().Add(this);
     }
 }
Пример #2
0
 private static void DeleteChild(int parentSupplirId)
 {
     foreach (var childSupplier in SupplierList.GetChildSuppliers(parentSupplirId))
     {
         var childSupplierId = childSupplier.SupplierId;
         if (SupplierList.Contains(childSupplierId))
         {
             DeleteChild(childSupplierId);
             SupplierList.GetSupplierList().Remove(childSupplier);
         }
     }
 }
Пример #3
0
 private static void BuildInstance()
 {
     Instance = new SupplierList();
     ResetData();
 }