コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: liuhongrui/gait
        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();
            }
        }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: justplus/gait
 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();
     }
 }