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); }
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); }
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); }