- 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
- 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.
- View available trips and their details.
- Book trips by selecting seats.
- View and manage booked trips.
- Cancel booked trips and free up reserved seats.
- Visual Studio
- .NET Framework
-
Clone the repository: git clone https://github.com/AbdelrhmanReda17/Train-Booking-Application/
-
Open the solution file
Train_Booking.sln
in Visual Studio. -
Build and run the application.
-
Upon launching the application, log in as an administrator using the following credentials:
- Username: admin
- Password: admin
-
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.
-
Upon launching the application, select the "Customer" option.
-
Log in as a customer using the following credentials:
- Username: customer
- Password: customer
-
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.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
For any inquiries or support, please contact Abdelrhman at Email.