public SToreRack(Positionable positionable, int price, string name, string manufact, int x, int y, int z) : base(positionable, price, manufact) { Id = ID; this.Name = name; ID++; positionable.changePos(); RackDB RDB = new RackDB(Name, 1, Id); RDB.InDB(); IdRack = RDB.id; Models.StoreRack BR = new Models.StoreRack { id = ID - 1, name = Name, Firma = manufact, Square = Convert.ToString(x * y), Price = Convert.ToString(price) }; InXML IX = new InXML("D:\\obj.xml", BR, true); }
public BOokRack(LinkedList <Models.BookRack> list, Positionable positionable, int price, string name, string Firma) : base(positionable, price, Firma) { Name = name; this.Firma = Firma; id = ID; ID++; RackDB RDB = new RackDB(Name, 1, id); RDB.InDB(); IdRack = RDB.id; // Console.WriteLine("создается книжный стеллаж"); Models.BookRack BR = new Models.BookRack { ID = ID - 1, Name = Name, Firma = Firma, Price = Convert.ToString(price) }; InXML IX = new InXML("D:\\obj.xml", BR, true); positionable.changePos(); }