Beispiel #1
0
        private void DrawTotales()
        {
            OrderTotal ordTot = new OrderTotal('?');

            foreach (string total in totales)
            {
                line = ordTot.GetTotalCantidad(total);
                line = AlignRightText(line.Length) + line;

                float fontHeight = printFont.GetHeight(gfx);
                float cant       = count + 3;
                float yPos       = topMargin + cant;
                gfx.DrawString(line, printFont, myBrush, leftMargin, yPos, new StringFormat());
                leftMargin = 0;

                line = "      " + ordTot.GetTotalName(total);
                gfx.DrawString(line, printFont, myBrush, leftMargin, YPosition(), new StringFormat());
                count++;
            }
            leftMargin = 0;
            //DrawEspacio();
            DrawEspacio();
        }
Beispiel #2
0
        public void AddTotal(string name, string price)
        {
            OrderTotal newTotal = new OrderTotal('?');

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