コード例 #1
0
        public frmArchiveClient(IArchiveServer archiver, ArchiveService.Conference conference, int[] streams, FMain refFMain, frmArchiveConf refFrmArchiveConf)
        {
            InitializeComponent();

            // Duration of the current conference
            totalDuration = conference.End - conference.Start;

            sliderRange       = tbPlayBack.Maximum - tbPlayBack.Minimum;
            ratioTickBySlider = totalDuration.Ticks / sliderRange;

            Streams = streams;

            this.archiver          = archiver;
            this.conference        = conference;
            this.refFMain          = refFMain;
            this.refFrmArchiveConf = refFrmArchiveConf;
        }
コード例 #2
0
        public frmArchiveClient(IArchiveServer archiver, ArchiveService.Conference conference, int[] streams, FMain refFMain, frmArchiveConf refFrmArchiveConf)
        {
            InitializeComponent();

            // Duration of the current conference
            totalDuration = conference.End - conference.Start;

            sliderRange = tbPlayBack.Maximum - tbPlayBack.Minimum;
            ratioTickBySlider = totalDuration.Ticks / sliderRange;

            Streams = streams;

            this.archiver = archiver;
            this.conference = conference;
            this.refFMain = refFMain;
            this.refFrmArchiveConf = refFrmArchiveConf;
        }
コード例 #3
0
ファイル: FMain.cs プロジェクト: abhishek-kumar/AIGA
        private void menuActionsPlayback_Click(object sender, System.EventArgs e)
        {
            // Create and show the play back dialog box to select a conference
            // to play back
            // Note: we pass a reference to FMain form in the ctor so the created form
            //       can communicate with FMain

            if (sender != this && (this.archiverState == ArchiverState.Stopped))
            {
                GetNewArchiver();
                frmArchiveConf client = new frmArchiveConf(this.archiver, this);
                if (!client.IsDisposed)
                {
                    client.Show();
                    client.Location = new Point(
                        SystemInformation.WorkingArea.Right - client.Width,
                        SystemInformation.WorkingArea.Bottom - client.Height);

                }
            }
            else if (sender != this && this.archiverState == ArchiverState.Playing)
            {
                StopPlayBack();
            }
        }