Esempio n. 1
0
 public static void AddCalls()
 {
     gsm.AddCall(new Call("20/08/2018", "18:30", "01234567890", 3600));
     gsm.AddCall(new Call("20/08/2018", "19:30", "01251577890", 360));
     gsm.AddCall(new Call("21/08/2018", "08:30", "01242574890", 18520));
     gsm.AddCall(new Call("20/08/2018", "18:30", "01234567890", 314));
     gsm.AddCall(new Call("20/08/2018", "18:30", "01215189660", 1516));
 }
Esempio n. 2
0
        public static void MakeCall(GSM gsm)
        {
            Console.WriteLine("Insert Date: ");
            string date = Console.ReadLine();

            Console.WriteLine("Insert Time: ");
            string time = Console.ReadLine();

            Console.WriteLine("Dialed Number: ");
            string dial_number = Console.ReadLine();

            Console.WriteLine("Insert Date: ");
            Int32 duration = Int32.Parse(Console.ReadLine());

            gsm.AddCall(new Call(date, time, dial_number, duration));
        }