Exemple #1
0
 public static void OutputCurrentFlight(Flight CurFlight)
 {
     if (CurFlight != null)
     {
         Flight.GetHeadOfTable();
         CurFlight.GetInfo();
         Console.WriteLine();
     }
     else
     {
         Program.WriteColorLine(" < No current flight specified > ", ConsoleColor.Magenta);
     }
 }
 public static void OutputCurrentCustomer(Customer CurCust)
 {
     if (CurCust != null)
     {
         Flight.GetHeadOfTable();
         CurCust.GetInfo();
         Console.WriteLine();
     }
     else
     {
         Program.WriteColorLine(" < No current account specified > ", ConsoleColor.Magenta);
     }
 }
Exemple #3
0
        public void OutputFlights()
        {
            if (Base.Count == 0)
            {
                Program.WriteColorLine(" < There's no flights in base > ", ConsoleColor.Magenta);
                return;
            }

            Console.WriteLine(Base.Count == 1 ? " < Flight > " : " < Flights > ");
            Flight.GetHeadOfTable();

            foreach (Flight CurFlight in Base)
            {
                CurFlight.GetInfo();
            }
            Console.WriteLine();
        }
Exemple #4
0
        public void OutputFlights(List <int> Indices)
        {
            if (Indices.Count == 0)
            {
                Program.WriteColorLine(" < There's no flights > ", ConsoleColor.Magenta);
                return;
            }

            Console.WriteLine(Indices.Count == 1 ? " < Flight > " : " < Flights > ");
            Flight.GetHeadOfTable();

            foreach (int Ind in Indices)
            {
                Base[Ind].GetInfo();
            }
            Console.WriteLine();
        }