public orderUserControl1 SendNotification(orderParts orderParts, orderUserControl1 order, int index, string s, decimal quantity)
 {
     manfacture.ConstructOrder(orderParts, order, index, s, quantity);
     form.setFlow.Controls.Add(order);
     form.Myorders[form.Myorders.Count] = order;
     return(order);
 }
 public void ConstructOrder(orderParts orderParts, orderUserControl1 n, int index)
 {
     orderParts.setImage(n);
     n.Name     = orderParts.setName();
     n.Type     = orderParts.setType();
     n.Exters   = orderParts.setExters();
     n.Size1    = orderParts.setSize();
     n.Index    = index;
     n.Quantity = 1;
 }
        public override orderUserControl1 Last()
        {
            orderUserControl1 o = null;;

            while (!IsDone())
            {
                o = _aggregate[++_current - 1];
            }
            return(o);
        }
Ejemplo n.º 4
0
 public void ConstructOrder(orderParts orderParts, orderUserControl1 n, int index, string s, decimal quantity)
 {
     orderParts.setImage(n);
     n.Name     = orderParts.setName();
     n.Type     = orderParts.setType();
     n.Exters   = orderParts.setExters();
     n.Size1    = s;
     n.Index    = index;
     n.Quantity = quantity;
 }
Ejemplo n.º 5
0
        public void setImage(orderUserControl1 o)
        {
            System.Drawing.Bitmap bitmap = new System.Drawing.Bitmap(fastFoodResturant.Properties.Resources._6);

            o.Image = bitmap;
        }