Beispiel #1
0
        //private void OpenChatForm(AddChatRequest request)
        //{
        //    GlobalVariable.AddNewChat(request);
        //    chatForm.BringToFront();
        //    chatForm.Show();
        //    chatForm.CreateChatItems(request, true);
        //}



        ///// <summary>
        ///// 窗体隐藏(重载此方法后onload事件不会执行)
        ///// </summary>
        ///// <param name="value"></param>
        //protected override void SetVisibleCore(bool value)
        //{
        //    base.SetVisibleCore(false);
        //}



        private void ShowRtspVideo(string rtsp)
        {
            if (videoForm == null || videoForm.IsDisposed)
            {
                videoForm = new VideoShow(ProgramType.Student, null);
            }
            videoForm.BringToFront();
            videoForm.Show();
            //  videoPlayer = f;
            Thread.Sleep(4000);
            videoForm.PlayVideo(rtsp);
        }
Beispiel #2
0
 private void PlayRtspVideo(string rtsp)
 {
     if (videoForm == null || videoForm.IsDisposed)
     {
         videoForm              = new VideoShow(ProgramType.Teacher, actionStuUserName);
         videoForm.FormClosing += VideoForm_FormClosing;
     }
     videoForm.BringToFront();
     videoForm.Show();
     Thread.Sleep(4000);
     videoForm.PlayVideo(rtsp);
 }