Exemplo n.º 1
0
        private void DrawTotals()
        {
            OrderTotal ordTot = new OrderTotal('?');

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

                gfx.DrawString(line, printFont, myBrush, leftMargin, YPosition(), new StringFormat());
                leftMargin = 0;

                line = "      " + ordTot.GetTotalName(total);
                gfx.DrawString(line, printFont, myBrush, leftMargin, YPosition(), new StringFormat());
                count++;
            }
            leftMargin = 0;
            DrawBlank();
            DrawBlank();
        }
Exemplo n.º 2
0
Arquivo: Ticket.cs Projeto: njmube/PoS
 public void AddTotal(string name,string price)
 {
     OrderTotal newTotal = new OrderTotal('?');
     totals.Add(newTotal.GenerateTotal(name, price));
 }
Exemplo n.º 3
0
Arquivo: Ticket.cs Projeto: njmube/PoS
        private void DrawTotals()
        {
            OrderTotal ordTot = new OrderTotal('?');

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

                gfx.DrawString(line, printFont, myBrush, leftMargin, YPosition(), new StringFormat());
                leftMargin = 0;

                line = "      "+ordTot.GetTotalName(total);
                gfx.DrawString(line, printFont, myBrush, leftMargin, YPosition(), new StringFormat());
                count++;
            }
            leftMargin = 0;
            DrawBlank();
            DrawBlank();
        }
Exemplo n.º 4
0
        public void AddTotal(string name, string price)
        {
            OrderTotal newTotal = new OrderTotal('?');

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