public Order(int count, Baguette baguette, string surname, DateTime readyBy) { this.baguette = baguette; this.count = count; this.surname = surname; this.readyBy = readyBy; }
public static void ReadOrder(string path, Shop shop) { Baguette baguette = null; List <Dictionary <string, string> > listArr = ReadFile(path); Dictionary <string, string> array = new Dictionary <string, string>(); for (int i = 0; i < listArr.Count; i++) { array = listArr[i]; if (array["Baguette_type:"].Equals("Farinee")) { baguette = new BaguetteFarinee(Convert.ToInt32(array["Width:"]), Convert.ToInt32(array["Height:"]), array["Baguette_type:"]); } else if (array["Baguette_type:"].Equals("Moulee")) { baguette = new BaguetteMoulee(Convert.ToInt32(array["Amount_of_coats:"]), Convert.ToInt32(array["Width:"]), Convert.ToInt32(array["Height:"]), array["Baguette_type:"]); } shop.AddNewOrder(new Order(Convert.ToInt32(array["Count:"]), baguette, array["Surname:"])); } }
public BaguettePriceCounter(Baguette baguette) { this.materials = baguette.baguetteInfo.materials; this.size = baguette.Size; this.polishLayers = baguette.baguetteInfo.polishLayers; }
public Order(int count, Baguette baguette, string surname) { this.baguette = baguette; this.count = count; this.surname = surname; }