Пример #1
0
        private void DrawTotales()
        {
            OrderTotal orderTotal = new OrderTotal('?');

            foreach (string totalItem in totales)
            {
                line = orderTotal.GetTotalCantidad(totalItem);
                line = AlignRightText(line.Length) + line;
                gfx.DrawString(line, printFont, myBrush, leftMargin, YPosition(), new StringFormat());
                leftMargin = 0f;
                line       = "      " + orderTotal.GetTotalName(totalItem);
                gfx.DrawString(line, printFont, myBrush, leftMargin, YPosition(), new StringFormat());
                count++;
            }
            leftMargin = 0f;
            DrawEspacio();
            DrawEspacio();
        }
Пример #2
0
        public void AddTotal(string name, string price)
        {
            OrderTotal orderTotal = new OrderTotal('?');

            totales.Add(orderTotal.GenerateTotal(name, price));
        }