static void Main(string[] args)
        {
            string myFile = "myFile";

            new XMLHandler(myFile).ShowInfoXML();
            new DOCHandler(myFile).ShowInfoDOC();
            new TXTHandler(myFile).ShowInfoTXT();

            new ExDevider("Ex3");

            Player myPlayer = new Player();

            IRecordable myRecorder = myPlayer as IRecordable;
            IPlayeble   myPlayeble = myPlayer as IPlayeble;

            IEnumerable instance = new ArrayList();

            Console.ReadKey();

            instance = instance as IQueryable;

            myPlayeble.Play();
            myRecorder.Record();
            myPlayeble.Stop();
            myRecorder.Stop();

            Console.ReadKey();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Player    player         = new Player();
            IPlayeble playeblaPlayer = player as IPlayeble;

            playeblaPlayer.Play();
            playeblaPlayer.Stop();
            playeblaPlayer.Pause();

            IRecordable recoPlayer = player as IRecordable;

            recoPlayer.Record();
            recoPlayer.Pause();
            recoPlayer.Stop();

            Console.ReadLine();
        }