예제 #1
0
 /// <summary>
 /// Seeking routine
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void trackBarSeek_Scroll(object sender, EventArgs e)
 {
     if (m_currItem != null)
     {
         double dblIn       = 0;
         double dblOut      = 0;
         double dblDuration = 0;
         m_currItem.FileInOutGet(out dblIn, out dblOut, out dblDuration);
         dblDuration = (dblOut > dblIn ? dblOut : dblDuration) - dblIn;
         double dblPos = dblIn + dblDuration * (double)trackBarSeek.Value / (double)trackBarSeek.Maximum;
         m_currItem.FilePosSet(dblPos, 0);
     }
 }
예제 #2
0
 private void SeekToTheEnd_btn_Click(object sender, EventArgs e)
 {
     item1.FilePosSet(315, 0);
 }