コード例 #1
0
ファイル: frmLauncher.cs プロジェクト: CarverLab/Oyster
        private void LaunchPlayer()
        {
            #if !DEBUG
            fFS = new frmFindSession();
            fFS.ShowInTaskbar = true;
            fFS.ShowDialog(this);
            #elif DEBUG
            frmSessionPlayback frmS = new frmSessionPlayback();
            frmS.ShowInTaskbar = true;
            frmS.ShowDialog(this);

            #endif
        }
コード例 #2
0
        private void frmSessionPlayback_Load(object sender, System.EventArgs e)
        {
            Text = CarverLabUtility.AppInfo.Title + " - " + Tag.ToString();
            txtNoteBody.Text = "";
            PreviewPlayer.ControlsVisible = false;

            PreviewPlayer.StatusInfoVisible = false;

            PreviewPlayer.LinkPlayerToSurface(ref psPlayer);
            //Application.DoEvents();
            PreviewPlayer.OpenPlayList();

            frmParent = (frmFindSession)this.Owner;
            if(RS != null)
            {
                foreach(OCL.Note N in RS.AllVisibleNotes(frmParent.LUser))
                {
                    ListViewItem LVI = lvNotes.Items.Add(N.SyncTime);
                    LVI.SubItems.Add(N.FileAttachments.Count.ToString());
                    LVI.SubItems.Add(N.Description);
                    LVI.Tag = N;
                }
                if(!RS.CanAddNotes(frmParent.LUser))
                    btnAddNote.Enabled = false;
            }
            else
            {
                gbNotes.Enabled = false;
            }
            psPlayer.Text = "Video";
            if(PreviewPlayer.IsLiveStream)
            {

                if(PreviewPlayer.PlayList.Count == 1)
                {
                    btnToggleRecordingSize_Click(btnToggleRecordingSize,EventArgs.Empty);
                }
                psPlayer.Add(PreviewPlayer.PlayList.Item(0).Name,PreviewPlayer.PlayList.Item(0),true);

                PreviewPlayer.PlayAllPlayers();
            }
            PreviewPlayer.TimeVisible = false;
            if(PreviewPlayer.IsLiveStream)
            {
                psPlayer.SwitchToLiveControls();
            }
            try
            {
                this.Owner.Visible = false;
            }
            catch(Exception Err)
            {
                string peekError = Err.Message;
            }
            System.Threading.Thread Resync = new System.Threading.Thread(new System.Threading.ThreadStart(Sync_Em));
            Resync.Start();
        }