예제 #1
0
파일: Ticket.cs 프로젝트: zeruel01/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();
        }
예제 #2
0
파일: Ticket.cs 프로젝트: njmube/PoS
 public void AddTotal(string name,string price)
 {
     OrderTotal newTotal = new OrderTotal('?');
     totals.Add(newTotal.GenerateTotal(name, price));
 }
예제 #3
0
파일: Ticket.cs 프로젝트: 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();
        }
예제 #4
0
파일: Ticket.cs 프로젝트: zeruel01/PoS
        public void AddTotal(string name, string price)
        {
            OrderTotal newTotal = new OrderTotal('?');

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