Skip to content

Latest commit

 

History

History
70 lines (46 loc) · 2.33 KB

README.md

File metadata and controls

70 lines (46 loc) · 2.33 KB

Train Booking Application

  • This is a train booking application developed using C# and Windows Forms. It provides an interface for both administrators and customers to manage and book train trips.
  • Converting the Train-booking Console Application into GUI

Features

Administrator Interface

  • Add new trips with source, destination, price, and train ID.
  • View and update existing trips.
  • Add new trains with total seat capacity.
  • Remove trains from the system.
  • Generate a report containing all trips, profit, and booked seats, and save it in CSV format.

Customer Interface

  • View available trips and their details.
  • Book trips by selecting seats.
  • View and manage booked trips.
  • Cancel booked trips and free up reserved seats.

Prerequisites

  • Visual Studio
  • .NET Framework

Getting Started

  1. Clone the repository: git clone https://github.com/AbdelrhmanReda17/Train-Booking-Application/

  2. Open the solution file Train_Booking.sln in Visual Studio.

  3. Build and run the application.

Usage

Administrator Interface

  1. Upon launching the application, log in as an administrator using the following credentials:

    • Username: admin
    • Password: admin
  2. Use the navigation buttons to access different functionalities:

    • "Add Trip": Add a new trip to the system.
    • "Review Trips": View and update existing trips.
    • "Add Train": Add a new train to the system.
    • "Remove Train": Remove a train from the system.
    • "Generate Report": Generate a report containing all trips, profit, and booked seats. The report will be saved in CSV format.

Customer Interface

  1. Upon launching the application, select the "Customer" option.

  2. Log in as a customer using the following credentials:

    • Username: customer
    • Password: customer
  3. Use the available options to perform actions:

    • "View Trips": Browse and select available trips.
    • "Book Trip": Choose a trip, select seats, and complete the booking process.
    • "Manage Bookings": View and manage your booked trips like cancel booking.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

Contact

For any inquiries or support, please contact Abdelrhman at Email.