Ejemplo n.º 1
0
 public Order(int count, Baguette baguette, string surname, DateTime readyBy)
 {
     this.baguette = baguette;
     this.count    = count;
     this.surname  = surname;
     this.readyBy  = readyBy;
 }
Ejemplo n.º 2
0
        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:"]));
            }
        }
Ejemplo n.º 3
0
 public BaguettePriceCounter(Baguette baguette)
 {
     this.materials    = baguette.baguetteInfo.materials;
     this.size         = baguette.Size;
     this.polishLayers = baguette.baguetteInfo.polishLayers;
 }
Ejemplo n.º 4
0
 public Order(int count, Baguette baguette, string surname)
 {
     this.baguette = baguette;
     this.count    = count;
     this.surname  = surname;
 }