Beispiel #1
0
 public void Save()
 {
     _isNew  = false;
     IsDirty = false;
     if (!SupplierList.Contains(SupplierId))
     {
         SupplierList.GetSupplierList().Add(this);
     }
 }
Beispiel #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);
         }
     }
 }
Beispiel #3
0
 private static void BuildInstance()
 {
     Instance = new SupplierList();
     ResetData();
 }