private void Goto_Click(object sender, RoutedEventArgs e) { if (pressureInfo == null) { return; } GoToWindow goToWindow = new GoToWindow(); goToWindow.currentFrameIndex = currentFrame; goToWindow.totalFrames = pressureInfo.allFrames.Count; if (goToWindow.ShowDialog() == true) { currentFrame = goToWindow.GoToFrame; UnFillPixelGrid(); FillPixelGrid(currentFrame); UpdateProcessBar(); label2.Content = "当前帧:" + currentFrame.ToString(); } }
private void Goto_Click(object sender, RoutedEventArgs e) { if (pressureInfo == null) return; GoToWindow goToWindow = new GoToWindow(); goToWindow.currentFrameIndex = currentFrame; goToWindow.totalFrames = pressureInfo.allFrames.Count; if (goToWindow.ShowDialog() == true) { currentFrame = goToWindow.GoToFrame; UnFillPixelGrid(); FillPixelGrid(currentFrame); UpdateProcessBar(); label2.Content = "当前帧:" + currentFrame.ToString(); } }