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(); }
public void AddTotal(string name,string price) { OrderTotal newTotal = new OrderTotal('?'); totals.Add(newTotal.GenerateTotal(name, price)); }
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(); }
public void AddTotal(string name, string price) { OrderTotal newTotal = new OrderTotal('?'); totals.Add(newTotal.GenerateTotal(name, price)); }