예제 #1
0
        public static void Main()
        {
            File  file  = new File("ABBA", 125, 10);
            Music music = new Music("Queen", "The Game", 1000, 220);

            StreamProgressInfo firstStreamProgressInfo  = new StreamProgressInfo(file);
            StreamProgressInfo secondStreamProgressInfo = new StreamProgressInfo(music);

            Console.WriteLine(firstStreamProgressInfo.CalculateCurrentPercent());
            Console.WriteLine(secondStreamProgressInfo.CalculateCurrentPercent());
        }
 static void Main()
 {
     var progressInfo  = new StreamProgressInfo(new File("my file", 100, 1000));
     var progressInfo2 = new StreamProgressInfo(new Music("lili ivanova", "album", 5, 13));
 }