Ejemplo n.º 1
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            findForm = new FindSession(this);
            this.Hide();
            findForm.ShowDialog();

            this.Show();
        }
Ejemplo n.º 2
0
        public RecordingForm(FindSession findSession)
        {
            InitializeComponent();
            _findSession = findSession;

            this.StartPosition = FormStartPosition.CenterScreen;

            _bReplaying = true;

            btnStartRec.Enabled = false;
            btnStopRec.Enabled  = false;
            label43.Visible     = false;
            linkLabel1.Visible  = false;
            btnAddNotes.Enabled = false;
            btnPlay.Visible     = false;
            label42.Visible     = false;

            setViewSessionInfo(_bReplaying);


            string[] videoFile = Directory.GetFiles(_findSession.selectedDataPath, "*.mp4");
            if (videoFile.Count() == 0)
            {
                MessageBox.Show("Dữ liệu phiên không có file video!");
                lblVideoPath.Text = "";
            }
            else
            {
                vlcPlayer.SetMedia(new Uri(videoFile[0]));
                //vlcPlayer.SetMedia(new Uri(_findSession.selectedDataPath + "\\video.mp4"));
                lblVideoPath.Text = videoFile[0];
                //lblVideoPath.Text = _findSession.selectedDataPath + "video.mp4";
            }


            label42.BackColor = Color.Transparent;
            vlcPlayer.Play();
        }