Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
 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();
     }
 }