private MediaViewModel()
        {
            SelectMediaCommand = new Command.SelectMediaCommand(PlayMedia);
            SelectPlaylistCommand = new Command.SelectPlaylistCommand(PlayPlaylist);
            PlayMediaCommand = new Command.PlayMediaCommand(Play);
            PauseMediaCommand = new Command.PauseMediaCommand(Pause);
            StopMediaCommand = new Command.StopMediaCommand(Stop);
            SpeedUpMediaCommand = new Command.SpeedUpMediaCommand(UpgradeSpeed);
            SpeedDownMediaCommand = new Command.SpeedDownMediaCommand(DowngradeSpeed);
            NextMediaCommand = new Command.NextMediaCommand(NextMedia);
            PrevMediaCommand = new Command.PrevMediaCommand(PrevMedia);

            CurrentMediaName = "Current Media";

            Image = new Media.Image();
            MediaElement = new Media.Video();
            Image.Display(AppDomain.CurrentDomain.BaseDirectory + "../../images/WindowsMediaPlayerLogo.png");
        }
Exemple #2
0
        private MediaViewModel()
        {
            SelectMediaCommand    = new Command.SelectMediaCommand(PlayMedia);
            SelectPlaylistCommand = new Command.SelectPlaylistCommand(PlayPlaylist);
            PlayMediaCommand      = new Command.PlayMediaCommand(Play);
            PauseMediaCommand     = new Command.PauseMediaCommand(Pause);
            StopMediaCommand      = new Command.StopMediaCommand(Stop);
            SpeedUpMediaCommand   = new Command.SpeedUpMediaCommand(UpgradeSpeed);
            SpeedDownMediaCommand = new Command.SpeedDownMediaCommand(DowngradeSpeed);
            NextMediaCommand      = new Command.NextMediaCommand(NextMedia);
            PrevMediaCommand      = new Command.PrevMediaCommand(PrevMedia);

            CurrentMediaName = "Current Media";

            Image        = new Media.Image();
            MediaElement = new Media.Video();
            Image.Display(AppDomain.CurrentDomain.BaseDirectory + "../../images/WindowsMediaPlayerLogo.png");
        }