Ejemplo n.º 1
0
 public Flight(int arg1, DateTime arg2, DateTime arg3, Cities arg4, Cities arg5, int arg6, double arg7, Flight_Status arg8, Flight_Type arg9)
 {
     Flight_Number             = arg1;
     Departure_Date            = arg2;
     Return_Date               = arg3;
     Origin                    = arg4;
     Destination               = arg5;
     Number_Of_Available_Seats = arg6;
     Base_Flight_Fare          = arg7;
     Flight_Status             = arg8;
     Flight_Type               = arg9;
 }
        public static void Add_Flight(int arg1, DateTime arg2, DateTime arg3, Cities arg4, Cities arg5, int arg6, int arg7, Flight_Status arg8, Flight_Type arg9)
        {
            try
            {
                Flight f1 = new Flight(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
                Flight_Processor.Save_Flight(f1);
            }

            finally
            {
                //return " Flight Added (success indication)"
            }

            //f.flight_number = /*latest_flight_number+1*/;
            //latest_flight_number = flight_number;

            // f.flight_status = Flight_Status.Scheduled;
        }