private void button3_Click(object sender, EventArgs e)
        {
            int    val1;
            double val2;
            double x;
            double y;
            double z;

            if (listBox1.Items.Count > 0 && listBox1.SelectedIndex >= 0)
            {
                string strPathOrCommand;
                MItem  pItem;
                double dblPos;
                myPlaylist.PlaylistGetByIndex(listBox1.SelectedIndex, out dblPos, out strPathOrCommand, out pItem);

                pItem.FileInOutGet(out x, out y, out z);

                double _dbFilePos;
                //item ın position unu get ile alıp sonra ona set ediyoruz. böylece kaldıgı yerden devam edıyo
                pItem.FilePosGet(out _dbFilePos);
                pItem.FilePosSet(_dbFilePos, 0);
                myPlaylist.FilePlayStart();

                //myPlaylist.PlaylistPosSet(listBox1.SelectedIndex, 0, 0);

                myPlaylist.PlaylistGetCount(out val1, out val2);
                label5.Text = "Video Time: " + val2.ToString() + "s";

                trackBar2.Maximum = Convert.ToInt32(z);
            }
        }
Пример #2
0
        /// <summary>
        /// Updates values in DataGridView
        /// </summary>
        private void updateList()
        {
            dataGridViewFiles.RowsRemoved -= new System.Windows.Forms.DataGridViewRowsRemovedEventHandler(this.dataGridViewFiles_RowsRemoved);
            dataGridViewFiles.Rows.Clear();
            dataGridViewFiles.RowsRemoved += new System.Windows.Forms.DataGridViewRowsRemovedEventHandler(this.dataGridViewFiles_RowsRemoved);
            int    nFiles      = 0;
            double dblDuration = 0;

            m_objPlaylist.PlaylistGetCount(out nFiles, out dblDuration);
            for (int i = 0; i < nFiles; i++)
            {
                string strPathOrCommand;
                MItem  pItem;
                double dblPos;
                m_objPlaylist.PlaylistGetByIndex(i, out dblPos, out strPathOrCommand, out pItem);
                strPathOrCommand = strPathOrCommand.Substring(strPathOrCommand.LastIndexOf('\\') + 1);

                double dblIn           = 0;
                double dblOut          = 0;
                double dblFileDuration = 0;
                pItem.FileInOutGet(out dblIn, out dblOut, out dblFileDuration);

                string strIn  = String.Format("{0:0.00}", dblIn);
                string strOut = String.Format("{0:0.00}", dblOut);
                int    nrow   = dataGridViewFiles.Rows.Add(dataGridViewFiles.Rows.Count + 1, strPathOrCommand, strIn, strOut);
                dataGridViewFiles.Rows[nrow].Tag = pItem;
            }
        }
Пример #3
0
        private void updateList()
        {
            listBox1.Items.Clear();
            int    nFiles;
            double dblDuration;

            myPlaylist.PlaylistGetCount(out nFiles, out dblDuration);
            for (int i = 0; i < nFiles; i++)
            {
                string strPathOrCommand;
                MItem  pItem;
                double dblPos;
                myPlaylist.PlaylistGetByIndex(i, out dblPos, out strPathOrCommand, out pItem);
                strPathOrCommand = strPathOrCommand.Substring(strPathOrCommand.LastIndexOf('\\') + 1);
                listBox1.Items.Add(strPathOrCommand);
            }
        }
Пример #4
0
        void UpdateList()
        {
            int    nFiles      = 0;
            double dblDuration = 0;

            m_objMPlaylist.PlaylistGetCount(out nFiles, out dblDuration);
            for (int i = 0; i < nFiles; i++)
            {
                string strPathOrCommand;
                MItem  pItem;
                double dblPos;
                m_objMPlaylist.PlaylistGetByIndex(i, out dblPos, out strPathOrCommand, out pItem);
                string Name = string.Empty;
                pItem.FileNameGet(out Name);
                list.Items.Add(Name);
            }
        }