예제 #1
0
        private void CtlThumb_Click(object sender, EventArgs e)
        {
            CustomeThumbControl ctl = sender as CustomeThumbControl;
            // Find index of currently selected video in list.

            List <VideoInfo> nextVideoList     = new List <VideoInfo>();
            List <VideoInfo> previousVideoList = new List <VideoInfo>();

            if (_searchApplied)
            {
                CreatePreviousAndNextPlaylist(_searchList, ctl.VideoUrl, out nextVideoList, out previousVideoList);
            }
            else
            {
                CreatePreviousAndNextPlaylist(_videoThumbnailFilePathList, ctl.VideoUrl, out nextVideoList, out previousVideoList);
            }

            frmUpCommingVideo upcomingVideoForm = new frmUpCommingVideo();

            upcomingVideoForm.ParentFormControl     = this;
            upcomingVideoForm.ClientInfoObject      = this.ClientInfoObject;
            upcomingVideoForm.NextVideoFileList     = nextVideoList;
            upcomingVideoForm.PreviousVideoFileList = previousVideoList;
            upcomingVideoForm.CurrentVideoInfo      = ctl.ThumbnailInformation;// new VideoInfo() { VideoName = ctl.ThumbnailInformation.VideoName, ThumbnailFilePath = ctl.ThumbnailInformation.ThumbnailFilePath, VideoFullUrl = ctl.ThumbnailInformation.VideoFullUrl};
            upcomingVideoForm.EncryptedVideo        = true;
            upcomingVideoForm.SelectedNode          = this.treeView1.SelectedNode;
            upcomingVideoForm.DashboardFormControl  = this.DashboardFormControl;
            upcomingVideoForm.Show();
            this.Hide();
        }
예제 #2
0
        private void CtlRecommanded_Click(object sender, EventArgs e)
        {
            try
            {
                _skipNodeSelection = true;
                CustomeThumbControl ctl = sender as CustomeThumbControl;

                this.treeView1.SelectedNode = this.SelectedNode = treeView1.FindByFullPath(ctl.VideoUrl).FirstOrDefault();

                List <VideoInfo> nextVideoList     = new List <VideoInfo>();
                List <VideoInfo> previousVideoList = new List <VideoInfo>();

                CreatePreviousAndNextPlaylist(_mostRecommandedVideos, ctl.VideoUrl, out nextVideoList, out previousVideoList);

                frmUpCommingVideo upcomingVideoForm = new frmUpCommingVideo();
                upcomingVideoForm.ParentFormControl     = this;
                upcomingVideoForm.ClientInfoObject      = this.ClientInfoObject;
                upcomingVideoForm.EncryptedVideo        = false;
                upcomingVideoForm.NextVideoFileList     = nextVideoList;
                upcomingVideoForm.PreviousVideoFileList = previousVideoList;
                upcomingVideoForm.CurrentVideoInfo      = ctl.ThumbnailInformation;//new VideoInfo() { FileName = ctl.ThumbnailInformation.VideoName, ThumbnailFilePath = ctl.ThumbUrl, VideoFullUrl = ctl.VideoUrl };
                upcomingVideoForm.EncryptedVideo        = true;
                upcomingVideoForm.SelectedNode          = this.treeView1.SelectedNode;
                upcomingVideoForm.DashboardFormControl  = this;
                upcomingVideoForm.Show();
                this.Hide();
            }
            finally
            {
                _skipNodeSelection = false;
            }
        }
예제 #3
0
        private void OpenUpcomingVideoForm(string[] nextVideoFileList)
        {
            frmUpCommingVideo upcomingVideoForm = new frmUpCommingVideo();

            upcomingVideoForm.ParentFormControl = this;
            upcomingVideoForm.ClientInfoObject  = this.ClientInfoObject;
            upcomingVideoForm.EncryptedVideo    = false;
            //upcomingVideoForm.NextVideoFileList = new string[] { Path.Combine(ClientHelper.GetClientVideoFilePath(ClientInfoObject.SchoolId, ClientInfoObject.SchoolCity), @"First\First-S1\First-S1-English\First-S1-English-Basic\VID-20150929-WA0005.mp4") };
            upcomingVideoForm.DashboardFormControl = this.DashboardFormControl;
            upcomingVideoForm.Show();
            this.Hide();
        }
예제 #4
0
        private void PlayVideo()
        {
            // frmPlayVideo playVideo = new frmPlayVideo();
            frmUpCommingVideo upcomingVideo = new frmUpCommingVideo();

            upcomingVideo.ParentFormControl = this;
            upcomingVideo.ClientInfoObject  = this.ClientInfoObject;
            upcomingVideo.EncryptedVideo    = false;
            //upcomingVideo.NextVideoFileList = new string[] { Path.Combine(ClientHelper.GetClientVideoFilePath(ClientInfoObject.SchoolId, ClientInfoObject.SchoolCity), @"First\First-S1\First-S1-English\First-S1-English-Basic\VID-20150929-WA0005.mp4") };
            upcomingVideo.Show();
            this.Hide();
        }
예제 #5
0
        private void CtlMostWatchedVideo_Click(object sender, EventArgs e)
        {
            try
            {
                _skipNodeSelection = true;
                CustomeThumbControl ctl = sender as CustomeThumbControl;
                // Find index of currently selected video in list.
                List <VideoInfo> nextVideoList     = new List <VideoInfo>();
                List <VideoInfo> previousVideoList = new List <VideoInfo>();

                this.treeView1.SelectedNode = this.SelectedNode = FindVideoParentTreeNode(ctl.VideoUrl);

                CreatePreviousAndNextPlaylist(_mostWatchedVideos, ctl.VideoUrl, out nextVideoList, out previousVideoList);

                frmUpCommingVideo upcomingVideoForm = (CommonAppStateDataHelper.FindFormByFormType("frmUpCommingVideo") as frmUpCommingVideo);
                if (upcomingVideoForm == null)
                {
                    upcomingVideoForm = new frmUpCommingVideo();
                }
                upcomingVideoForm.ParentFormControl     = this;
                upcomingVideoForm.ClientInfoObject      = this.ClientInfoObject;
                upcomingVideoForm.EncryptedVideo        = false;
                upcomingVideoForm.NextVideoFileList     = nextVideoList;
                upcomingVideoForm.PreviousVideoFileList = previousVideoList;
                upcomingVideoForm.CurrentVideoInfo      = ctl.ThumbnailInformation; //  new VideoInfo() { VideoName = ctl.ThumbnailInformation.VideoName, ThumbnailFilePath = ctl.ThumbnailInformation.ThumbnailFilePath, VideoFullUrl = ctl.ThumbnailInformation.VideoFullUrl };
                upcomingVideoForm.EncryptedVideo        = true;
                upcomingVideoForm.SelectedNode          = this.treeView1.SelectedNode;
                upcomingVideoForm.DashboardFormControl  = this;
                upcomingVideoForm.Show();
                this.Hide();
            }
            finally
            {
                _skipNodeSelection = false;
            }
        }