Changeset 5892


Ignore:
Timestamp:
04/10/14 14:15:14 (6 years ago)
Author:
avneesh-singh
Message:

monitorcontinuously stopped for all file operations

Location:
trunk/Obi/Obi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Obi/Obi/ObiForm.cs

    r5887 r5892  
    289289                m_IsStatusBarEnabled = true; 
    290290                if (mProjectView.Presentation != null && mProjectView.TransportBar.IsActive) 
     291                { 
     292                    if (mProjectView.TransportBar.MonitorContinuously) mProjectView.TransportBar.MonitorContinuously = false; //@MonitorContinuously 
    291293                    mProjectView.TransportBar.Stop(); 
     294                } 
    292295                if (DidCloseProject()) 
    293296                { 
     
    316319            { 
    317320                if (mProjectView.Presentation != null && mProjectView.TransportBar.IsActive) 
     321                { 
     322                    if (mProjectView.TransportBar.MonitorContinuously) mProjectView.TransportBar.MonitorContinuously = false; //@MonitorContinuously 
    318323                    mProjectView.TransportBar.Stop(); 
     324                } 
    319325                if (DidCloseProject()) 
    320326                { 
     
    533539            private void Open() 
    534540            { 
     541                if (mProjectView.TransportBar.MonitorContinuously) mProjectView.TransportBar.MonitorContinuously = false; //@MonitorContinuously 
    535542                if (mProjectView.Presentation != null && mProjectView.TransportBar.IsActive) 
     543                { 
    536544                    mProjectView.TransportBar.Stop(); 
     545                } 
    537546                OpenFileDialog dialog = new OpenFileDialog(); 
    538547                dialog.Filter = Localizer.Message("obi_filter"); 
     
    641650                { 
    642651                    m_IsSaveActive = true; 
     652                    if (mProjectView.TransportBar.MonitorContinuously) mProjectView.TransportBar.MonitorContinuously = false; //@MonitorContinuously 
    643653                    if (mProjectView.TransportBar.IsPlayerActive || mProjectView.TransportBar.IsRecorderActive) 
     654                    { 
    644655                        mProjectView.TransportBar.Stop(); 
     656                    } 
    645657 
    646658                    // Freeze restore should return only if the function do not return null 
     
    674686                    mFile_SaveProjectAsMenuItem.Enabled = false; 
    675687 
    676                     if (mProjectView.TransportBar.IsRecorderActive) mProjectView.TransportBar.Stop(); 
     688                    if (mProjectView.TransportBar.IsRecorderActive) 
     689                    { 
     690                        mProjectView.TransportBar.Stop(); 
     691                    } 
    677692                    DateTime currentDateTime= DateTime.Now ; 
    678693                    string postFix = currentDateTime.Year.ToString() + "-" 
     
    710725            private void SaveAs() 
    711726            { 
     727                if (mProjectView.TransportBar.MonitorContinuously) mProjectView.TransportBar.MonitorContinuously = false; //@MonitorContinuously 
    712728                mProjectView.TransportBar.Stop(); 
    713729                string path_original = mSession.Path; 
     
    935951            private void CleanProject() 
    936952            { 
     953                if (mProjectView.TransportBar.MonitorContinuously) mProjectView.TransportBar.MonitorContinuously = false; //@MonitorContinuously 
    937954                if (mProjectView.TransportBar.IsActive) mProjectView.TransportBar.Stop(); 
    938955                if (!string.IsNullOrEmpty(mSession.Path) && mSession.Path.Length > 220 
  • trunk/Obi/Obi/ProjectView/ProjectView.cs

    r5830 r5892  
    51885188        public void MergeProject (Session session) 
    51895189        { 
     5190            if (TransportBar.MonitorContinuously) TransportBar.MonitorContinuously = false; //@MonitorContinuously 
     5191            if (TransportBar.IsActive) TransportBar.Stop(); 
    51905192            if (MessageBox.Show(Localizer.Message("MergeProject_Information"), 
    51915193                Localizer.Message("Caption_Information"), 
Note: See TracChangeset for help on using the changeset viewer.