Exemple #1
0
 public bool addTriangle(int num, double s, bool isOrt)
 {
     if (LastTriangleNumber + 1 < triangls.Length)
     {
         triangls[++LastTriangleNumber] = new BookT(num, s, isOrt);
         return(true);
     }
     return(false);
 }
Exemple #2
0
        public bool AddProduct(string name, string manufacturer, int price, int amount, int shopNumber, int minimumLot)
        {
            if (LastProduct + 1 < carShop.Length)
            {
                carShop[++LastProduct] = new BookT(name, manufacturer, price, amount, shopNumber, minimumLot);
                return(true);
            }
            else
            {
                Array.Resize(ref carShop, carShop.Length + 1);
            }

            carShop[++LastProduct] = new BookT(name, manufacturer, price, amount, shopNumber, minimumLot);
            return(false);
        }
Exemple #3
0
 public void RecviationArr(int x, string name, string manufacturer, int price, int amount, int shopNumber, int minimumLot)
 {
     carShop[x - 1] = new BookT(name, manufacturer, price, amount, shopNumber, minimumLot);
 }