• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is this design choice recommended?

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to cancel the action of booking by pressing the "Cancel" button ? Is only interrupting the booking thread enough?
 
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Zhou Can:
How to cancel the action of booking by pressing the "Cancel" button ? Is only interrupting the booking thread enough?


I am afraid only canceling is not enough. You have to know where the thread is at, if a ticket has been deducted, then 'cancel' is supposed to credit it back.
In my design, at each step along the way, there is 'go forward' and 'go backward' buttons. And of course, you can always click 'X' at upper right corner of the window to cancel the whole thing.
Once a customer has booked the ticket, there is no way to cancel it, which is not part of the requirement. However, I think you can define a kind of booking operation, which deduct -1 from the total number of ticket. So that will equal to increasing ticket number by 1.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic