Exemplo n.º 1
0
        private void ClearState()
        {
            DisposeAudioComponents();
            if (_doAudioOperations != null)
            {
                _doAudioOperations.Clear();
            }
            if (_sessCreatedFlag)
            {
                _isCanvasCleared = WaveFormDisplay.ClearCanvas();
            }

            _waveDisplay.ChannelPosition = 0.0d;
            _isPlaying        = false;
            _sessCreatedFlag  = false;
            trialName.Content = "";

            PlayEnabled(false);
            _settingsObject.SessionCreatedFlag = false;
            LoopBtn.Content = (Image)FindResource("NoLoop");
            _microTimer.Stop();
            _sessionIndex = 0;
            _loopFalg     = false;
            WaveFormDisplay.RepeatRegionHeight = 0;
            WaveFormDisplay.RepeatRegionWidth  = 0;
            _current = -1;
            _next    = -1;
            StartText.Clear();
            StopText.Clear();
        }
Exemplo n.º 2
0
        private void ClearState()
        {
            DisposeAudioComponents();
            if (_doAudioOperations != null)
            {
                _doAudioOperations.Clear();
            }
            _waveDisplay.ChannelPosition       = 0.0d;
            WaveFormDisplay.RepeatRegionHeight = 0;
            WaveFormDisplay.RepeatRegionWidth  = 0;
            SelectEnd   = 0.0f;
            SelectBegin = 0.0f;
            _waveDisplay.SelectionBegin = TimeSpan.Zero;
            _waveDisplay.SelectionEnd   = TimeSpan.Zero;
            _isCanvasCleared            = WaveFormDisplay.ClearCanvas();
            LoopBtn.Content             = FindResource("NoLoop");
            PlayEnabled(false);
            HighlightPlayingAudio(-1);
            _settingsObject.SessionCreatedFlag = false;
            trialName.Content = "";
            _microTimer.Stop();

            _clickedButton   = 0;
            _loopFalg        = false;
            _sessionIndex    = 0;
            _isPlaying       = false;
            _sessCreatedFlag = false;
            StartText.Clear();
            StopText.Clear();
        }
Exemplo n.º 3
0
 public TimeStopListItem()
 {
     InitializeComponent();
     TimeText.SetValue(RotateEffect.IsEnabledProperty, true);
     StopText.SetValue(RotateEffect.IsEnabledProperty, true);
 }