public void ViewEvents() //вывод журнала { Console.WriteLine("View Journal"); foreach (Journal_Info curJI in journals) { Models.Journal_Info JI = new Models.Journal_Info { ID = curJI.ID, TEv = curJI.TEv.ToString(), TimeEvent = (curJI.TimeEvent), IdRack = (curJI.IdRack), ts = curJI.typeSender }; InXML IX = new InXML("D:\\obj.xml", JI, true); Console.WriteLine(curJI.ToString()); } }
public void ViewEvents() //вывод журнала { Console.WriteLine("View Journal"); foreach (JournalInfo curJI in journals) { Console.WriteLine(curJI); Models.Journal_Info JI = new Models.Journal_Info { ID = curJI.ID + id, TEv = curJI.TEv.ToString(), TimeEvent = (curJI.TimeEvent) }; InXML IX = new InXML("D:\\obj.xml", JI, true); id++; } }
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(); }