예제 #1
0
파일: Program.cs 프로젝트: CMaC253/PCE_06
        public void RunExercise()
        {
            TelevisionHandler tvh = new TelevisionHandler();

            Television tv1;

            tv1 = tvh.CreateATV();
            tv1 = tvh.CreateATVFromUserInput();
        }
예제 #2
0
파일: Program.cs 프로젝트: CMaC253/PCE_06
        public void RunExercise()
        {
            TelevisionHandler tvh = new TelevisionHandler();

            Television tv = new Television("Sony", 2000.0m, 50);

            Console.WriteLine("Printing using the Print method: ");
            tvh.PrintMyTV(tv);

            Console.WriteLine("Printing using getters: ");
            tvh.PrintMyTVUsingGetters(tv);
        }
예제 #3
0
파일: Program.cs 프로젝트: CMaC253/PCE_06
        public void RunExercise()
        {
            TelevisionHandler tvh      = new TelevisionHandler();
            Television        firstTV  = new Television("Samsung", 2.0m, 10.5);
            Television        secondTV = new Television("Westinghouse", 10.5m, 42);
            //firstTV = tvh.CreateATV();
            //secondTV = tvh.CreateATVFromUserInput();

            Television moreExpensiveTV;

            moreExpensiveTV = tvh.PickMoreExpensiveTV(firstTV, secondTV);

            firstTV.Print();
            secondTV.Print();

            Console.WriteLine("The more expensive TV is: ");
            tvh.PrintMyTV(moreExpensiveTV);
        }
예제 #4
0
        public void RunExercise()
        {
            TelevisionHandler th = new TelevisionHandler();

            th.PrintArrayOfPossiblyNullTVs();
        }