示例#1
0
        public void CreateProd()
        {
            bool productNumberExist;

            if (productNumberExist = ProductMethods.CheckProductNumber(LocalProductNumber))
            {
                MessageBox.Show("Dette produktnummer eksisterer allerede. Prøv et nyt");
            }
            else
            {
                Product.ProductID    = LocalProductNumber.ToString();
                Product.ProductGroup = SelectedMainGroup + "-" + SelectedSubGroup;
                ProductMethods.CreateProduct(Product);
                MessageBox.Show("Produkt oprettet!");
            }
        }