コード例 #1
0
    static void Main()
    {
        Console.WriteLine(new string('-', 50));
        Console.WriteLine("Enter information for first phone: ");
        Console.WriteLine(new string('-', 50));

        GSM[] array = new GSM[2];

        Console.ForegroundColor = ConsoleColor.Red;
        GSM firstGSM = new GSM();
        firstGSM.Read();
        Console.ResetColor();

        Console.WriteLine();

        Console.WriteLine(new string('-', 50));
        Console.WriteLine("Enter information for second phone: ");
        Console.WriteLine(new string('-', 50));

        Console.ForegroundColor = ConsoleColor.Green;
        GSM secondGSM = new GSM();
        secondGSM.Read();
        Console.ResetColor();

        EmptySpace(4);

        Console.WriteLine(new string('-', 50));
        Console.WriteLine("Print information for first phone: ");
        Console.WriteLine(new string('-', 50));

        Console.ForegroundColor = ConsoleColor.Red;
        firstGSM.Print();
        Console.ResetColor();

        EmptySpace(2);

        Console.WriteLine(new string('-', 50));
        Console.WriteLine("Print information for second phone: ");
        Console.WriteLine(new string('-', 50));

        Console.ForegroundColor = ConsoleColor.Green;
        secondGSM.Print();
        Console.ResetColor();

        EmptySpace(2);

        Console.WriteLine(new string('-', 50));
        Console.WriteLine("Print information for IPhone4S: ");
        Console.WriteLine(new string('-', 50));

        Console.ForegroundColor = ConsoleColor.Blue;
        GSM.IPhone4S.Print();
        Console.ResetColor();

        EmptySpace(4);

        GSMCallHistoryTest historyTest = new GSMCallHistoryTest();
        historyTest.HistoryTest();

        Console.WriteLine();
    }