示例#1
0
        // display all passengers which were able to hop on successfully, send SMS, issue ticket and deduct from account
        private void UserHopOn(EzySystem ezySystem)
        {
            // check expiry ticket
            List<string> temp = ezySystem.GetWhoHasHopOn();
            if (temp.Count == 0) return;

            SimulationBox.Text += ("The following users have sucessfully hopped on: "+ "\n");
            for (int i = 0; i < temp.Count; i++)
            {
                SimulationBox.Text += temp.ElementAt(i);
            }


        }
示例#2
0
        // display all passengers which were able to hop on successfully, send SMS, issue ticket and deduct from account
        private void UserHopOn(EzySystem ezySystem)
        {
            // check expiry ticket
            List<string> temp = ezySystem.GetWhoHasHopOn();
            if (temp.Count == 0) return;
            
            Console.WriteLine("The following users have sucessfully hopped on: ");
            for (int i = 0; i < temp.Count; i++)
            {
                Console.WriteLine(temp.ElementAt(i));
            }
            

        }