public void Print(string title, int sum) { _ticket = new Ticket(); _ticket.Title = title; _ticket.Sum = sum; sum = 0; LogTicket?.Invoke(this, _ticket); }
public void Print() { _ticket = new Ticket(); _ticket.Description = _name; _ticket.Amount = _slot; _slot = 0; LogTicket?.Invoke(this, _ticket); }