コード例 #1
0
        static void Main()
        {
            GSM gsm = new GSM("Lumia", "Nokia");

            gsm.AddCalls(DateTime.Now, "0889976484", 45);
            gsm.AddCalls(DateTime.UtcNow, "088956454", 23);
            gsm.AddCalls(DateTime.Now.AddHours(13), "0883076494", 5);

            gsm.TotalPrice(2);
        }
コード例 #2
0
        static void Main()
        {
            GSM gsm = new GSM("Lumia", "Nokia");

            gsm.AddCalls(DateTime.Now, "0889976484", 45);
            gsm.AddCalls(DateTime.UtcNow, "088956454", 23);
            gsm.AddCalls(DateTime.Now.AddHours(13), "0883076494", 5);

            gsm.TotalPrice(2);
        }
コード例 #3
0
        static void Test()
        {
            GSM[] gsmArr = new GSM[3]
            {
                new GSM("Lumia ", " Nokia ", 850, " Pesho"),
                new GSM("Lumia925 ", " Nokia ", 450, " Gosho"),
                new GSM("3310 ", " Nokia ", 50, " Ivan"),
            };

            foreach (GSM item in gsmArr)
            {
                Console.WriteLine(item.ToString());
            }
            Console.WriteLine();
            Console.WriteLine("Apple phone: ");
            Console.WriteLine(GSM.IPhone4S);
        }
コード例 #4
0
        static void Test()
        {
            GSM[] gsmArr = new GSM[3]
            {
            new GSM("Lumia ", " Nokia ", 850, " Pesho"),
            new GSM("Lumia925 ", " Nokia ", 450, " Gosho"),
            new GSM("3310 ", " Nokia ", 50, " Ivan"),
            };

            foreach (GSM item in gsmArr)
            {
                Console.WriteLine(item.ToString());
            }
            Console.WriteLine();
            Console.WriteLine("Apple phone: ");
            Console.WriteLine(GSM.IPhone4S);
        }
コード例 #5
0
ファイル: GSM.cs プロジェクト: iliantova/Telerik-Homework
 static GSM()
 {
     iPhone = new GSM("iPhone 4S", "Apple", 1000, "Will Smith",
                      new Battery("Apple", 12, 36, BatteryType.LiIon), new Display(7, 16000000));
 }
コード例 #6
0
ファイル: GSM.cs プロジェクト: iliantova/Telerik-Homework
 static GSM()
 {
     iPhone = new GSM("iPhone 4S", "Apple", 1000, "Will Smith",
         new Battery("Apple", 12, 36, BatteryType.LiIon), new Display(7, 16000000));
 }