public Product(int amount, Label label, Price price, Location location)
 {
     if (Security.AnyNullOrEmpty(label.ArticleNumber1, label.Name, location.WorldLocation,
         location.InventoryLocation, amount, label.Tags, label.Catagory, price.AcquisitionPrice, price.SalesPrice))
     {
         throw new ArgumentNullException("Du det dårligste menneske jeg kender.");
     }
     ArticleNumber1 = label.ArticleNumber1;
     Name = label.Name;
     WorldLocation = location.WorldLocation;
     InventoryLocation = location.InventoryLocation;
     Amount = amount;
     AcquisitionPrice = price.AcquisitionPrice;
     Tags = label.Tags;
     Catagory = label.Catagory;
     SalesPrice = price.SalesPrice;
 }
        public System(Id id, Location location, int amount, Price price, string acquisitor,
            Status status, string documentDirectory, string documentName,
            string specsheetDirectory, string specsheetName, string imageDirectory, string imageName)
            : base(amount, id, price, location)
        {
            if (Security.AnyNullOrEmpty(id.ArticleNumber1, id.SerialNumber, id.Name, id.Tags,
                id.Catagory, id.Model, id.ProductionYear, location.WorldLocation, location.InventoryLocation,
                amount, price.AcquisitionPrice, price.SalesPrice, status.Transit, status.InventoryStatus,
                status.SalesStatus, acquisitor))
            {
                throw new ArgumentNullException("Du det dårligste menneske jeg kender.");
            }

            ArticleNumber2 = id.ArticleNumber2;
            SerialNumber = id.SerialNumber;
            Transit = status.Transit;
            InventoryStatus = status.InventoryStatus;
            SalesStatus = status.SalesStatus;
            Model = id.Model;
            ProductionYear = id.ProductionYear;
            Acquisitor = acquisitor;

            #if DEBUG
            #warning - Skal lige kvalitet checkes, da jeg ikke ved om dette er okay.
            if (imageName != null && imageDirectory != null)
            {
                Images = (Bitmap)Image.FromFile(imageDirectory + @"\" + imageName);
            }
            if (specsheetDirectory != null && specsheetName != null)
            {
                loadspecsheet(specsheetDirectory, specsheetName);
            }
            if (documentDirectory != null && documentName != null)
            {
                loadDocument(documentDirectory, documentName);
            }
            #endif
        }
 public SparePart(int amount, Label label, Price price, Location location)
     : base(amount, label, price, location)
 {
 }