From: <avn...@us...> - 2008-03-21 15:09:51
|
Revision: 2969 http://urakawa.svn.sourceforge.net/urakawa/?rev=2969&view=rev Author: avneeshsingh Date: 2008-03-21 08:09:49 -0700 (Fri, 21 Mar 2008) Log Message: ----------- Play button plays all if selection is null. Modified Paths: -------------- trunk/urakawa/application/Obi/Obi/ProjectView/TransportBar.cs Modified: trunk/urakawa/application/Obi/Obi/ProjectView/TransportBar.cs =================================================================== --- trunk/urakawa/application/Obi/Obi/ProjectView/TransportBar.cs 2008-03-21 13:10:15 UTC (rev 2968) +++ trunk/urakawa/application/Obi/Obi/ProjectView/TransportBar.cs 2008-03-21 15:09:49 UTC (rev 2969) @@ -389,8 +389,12 @@ private void mPrevSectionButton_Click(object sender, EventArgs e) { PrevSection(); } private void mPrevPhraseButton_Click(object sender, EventArgs e) { PrevPhrase(); } private void mRewindButton_Click(object sender, EventArgs e) { Rewind(); } - private void mPlayButton_Click(object sender, EventArgs e) { if ( mView.CanPlaySelection ) Play(mView.Selection.Node); } - private void mPauseButton_Click(object sender, EventArgs e) { Pause(); } + private void mPlayButton_Click(object sender, EventArgs e) + { + if (mView.CanPlaySelection) Play(mView.Selection.Node); + else Play(); + } + private void mPauseButton_Click(object sender, EventArgs e) { Pause(); } private void mRecordButton_Click(object sender, EventArgs e) { Record(); } private void mStopButton_Click(object sender, EventArgs e) { Stop(); } private void mFastForwardButton_Click(object sender, EventArgs e) { FastForward(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |