public void StopAnim() { if (!_playing && !_timer.IsRunning) { return; } _timer.Stop(); _playing = false; if (disableBonesWhenPlayingToolStripMenuItem.Checked) { if (!_bonesWereOff) { RenderBones = true; } _bonesWereOff = false; } pnlPlayback.btnPlay.Text = "Play"; EnableTransformEdit = true; if (_capture) { RenderToGIF(images.ToArray()); images.Clear(); _capture = false; } }
public static void Stop() { _timer.Stop(); Playing = false; if (MainWindow._capture) { MainWindow.RenderToGIF(MainWindow.images.ToArray()); MainWindow.images.Clear(); MainWindow._capture = false; } }
private void Stop() { if (!_isPlaying) { return; } _isPlaying = false; //Stop timer _timer.Stop(); //Stop device if (_buffer != null) { _buffer.Stop(); } btnPlay.Text = "Play"; previewPanel1.btnLeft.Visible = previewPanel1.btnRight.Visible = true; }